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

Do not autoclose if typing in front of a character which is not whitespace #253

Closed ghost closed 7 years ago

ghost commented 7 years ago

I often type something and then realize I need to surround it in parenthesis when I'm done typing. So I'll type this.

toString IntegerOne

And then realize I need to surround it with parenthesis. So I'll type the opening parenthesis in front of the toString, and it'll end up like this.

()toString IntegerOne

Now I can just delete the second paranthesis, but in Sublime and Atom, the auto close functionality recognizes that you may not want a closing parenthesis after typing an opening one in front of a token.