Townk / vim-autoclose

This plugin for Vim enable an auto-close chars feature for you. For instance if you type an '(', ``autoclose`` will automatically insert a ')' and put the cursor between than.
http://townk.github.com/vim-autoclose/
503 stars 66 forks source link

dot command becomes useless when autoclosing #39

Open flavius opened 12 years ago

flavius commented 12 years ago

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.

blueyed commented 12 years ago

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 commented 11 years ago

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