vim-autoclose
vim-autoclose copied to clipboard
dot command becomes useless when autoclosing
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.
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){
}
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