vim-autoclose icon indicating copy to clipboard operation
vim-autoclose copied to clipboard

dot command becomes useless when autoclosing

Open flavius opened this issue 12 years ago • 2 comments

Sample file:

int f1(a1);
int f1(a1);

press A<backspace>{<CR><ESC> on the first line, you get:

int f1(a1){

}
int f1(a1);

2j. will make it:

int f1(a1){

}

int f1(a1);

That is, the only modification done by . is the added empty line on the second last line of the file.

flavius avatar Sep 10 '12 13:09 flavius

Works for me, although I am not getting the additional newline in the first place.

I end up with:

int f1(a1){
}
int f1(a1){
}

blueyed avatar Oct 01 '12 21:10 blueyed

I have just ran into a similar issue (quotes in a smarty file).

While I still cannot reproduce the test case, I think that in general, using tpope's repeat.vim would help: https://github.com/tpope/vim-repeat

blueyed avatar Feb 21 '13 15:02 blueyed