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

delimitMate does not react correctly to <CR> while YouCompleteMe offers completion candidates #198

Closed bmedicke closed 9 years ago

bmedicke commented 9 years ago

Here's the minimal .vimrc I tested it with:

call plug#begin('~/.nvim/bundle')
Plug 'Raimondi/delimitMate'
Plug 'Valloric/YouCompleteMe'
call plug#end()
let delimitMate_expand_cr = 2

To reproduce open a non empty file (like the above .vimrc) and type inside of brackets until YCM opens the completion list and press enter twice. Compare that to pressing enter twice after typing a single character (so YCM does not offer suggestions):

{aa 
}|

vs.

{a

|
}

Pipes are cursors.

Raimondi commented 9 years ago

I don't know what could be going on. I'm sorry I can't more useful but I don't use YCM and I'm not starting now. If you find a fix to this feel free to reopen the issue.