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

typing right curly brace, doesn't jump cursor #250

Open vbauerster opened 7 years ago

vbauerster commented 7 years ago

Hi!

Consider following case (the final position of the cursor is represented by a "|"):

typing {} produces {}}|, whereas typing () produces ()|

I expect typing both curtly braces behave same as parens, or do I miss something? Is it possible to get the same behaviour, as with parens?

my config is:

let g:delimitMate_expand_cr = 1
let g:delimitMate_expand_space = 1
adriaanzon commented 7 years ago

I got the same kind of problem, but for me it only happens inside comments which contain a different syntax group, and with any delimiter.

I noticed it when typing a doc comment with StanAngeloff's php plugin enabled:

/**
 * @param string[]]
 */

You can also reproduce it with vim script for example:

" Foo:[]]