cohama / lexima.vim

Auto close parentheses and repeat by dot dot dot...
1.01k stars 46 forks source link

Does not leave closing pair when closing pair is input #12

Closed blueyed closed 9 years ago

blueyed commented 9 years ago

I am not sure if some other plugin is involved here, but when typing (), the result should be ()| and not ()|).

The tests cover this at https://github.com/cohama/lexima.vim/blob/master/test/default_rules.vimspec#L31-41, but it's not working for me.

imap ) shows <C-R>=<SNR>59_map_impl(')', ')')<CR>.

I've git-bisected it, and it started to happen with 69d35262e526bd54f40fae49e759e9d637419bf7 (prototype version v0.2, from August).

cohama commented 9 years ago

Sorry for slow response. I cannot reproduce this issue. You need to report with your vimrc.

Ah... Did you leave insert mode before type )? Leaving closing pair rules are enabled only within the same insert mode session.

blueyed commented 9 years ago

I did not leave insert mode.

I am currently back to using delimitMate, but will provide more information if I can reproduce it again.

Closing the issue for now.