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 116 forks source link

delimitMate_expand_cr breaks with `comments = n:)` #283

Open niklaas opened 5 years ago

niklaas commented 5 years ago

(|) hitting <cr> leads to something like

(
)|
)

which adds a superfluous extra closing bracket. Took me some while to figure out that it has something to do with

set comments = n:)

Removing n:) from comments solved the issue for me.

I don't know whether this really is a bug, so feel free to close the issue. But probably it's good to maintain it for reference.