Raimondi / delimitMate

Vim plugin, provides insert mode auto-completion for quotes, parens, brackets, etc.
http://www.vim.org/scripts/script.php?script_id=2754
1.98k stars 117 forks source link

Inserting the closing character of a pair doesn't "jump" with certain syntaxes #248

Open romgrk opened 8 years ago

romgrk commented 8 years ago

Hi there,

I was wondering if you could help with this issue.

 I type ;  I get  ;  I want
   ()   ;   ()|)  ;  ()|

It only happens with certain syntaxes. For example, javascript of panglo's vim-javascript. If I'm editing a buffer with this issue, and I turn syntax off, then the issue disappears. Running both :imap ) and :imap <buffer> ) shows that the mapping of ) is @<Plug>delimitMate). Thanks in advance for any time that you might take reading or solving this issue.

romgrk commented 8 years ago

Just noted that it only happens with () and {}. Not [].

qstrahl commented 8 years ago

That's odd. If you are using the master branch of vim-javascript, try switching to the develop branch. I don't have the issue you describe. I think we're pushing to merge into master soon so if develop works for you please let us know over there.

On Sat, Aug 27, 2016, 01:41 Rom Grk notifications@github.com wrote:

Just noted that it only happens with () and {}. Not [].

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/Raimondi/delimitMate/issues/248#issuecomment-242898037, or mute the thread https://github.com/notifications/unsubscribe-auth/ACIbjX3VZkWBMHnEPz9XL1kJvrEJayk1ks5qj84KgaJpZM4Junz2 .

romgrk commented 7 years ago

I ended up using lexima, feel free to close this issue if you cantreproduce/wontfix.