This is cross-posting from neocomplcache issues as recommended by @Shougo.
Note that I'm also using vim-endwise. Using the recommended snippet from doc/neocomplcache.txt (see 351a2f102460):
inoremap <expr><silent> <CR> <SID>my_cr_function()
function! s:my_cr_function()
return pumvisible() ? neocomplcache#close_popup() . "\<CR>" : "\<CR>"
endfunction
when pressing enter when choosing autocompletion from the menu it selects this autocompletion and also moves you to the next line (i.e. <CR> is literally inserted), while using the previous snippet for <CR> mapping in insert mode (inoremap <expr><CR> neocomplcache#smart_close_popup() . "\<CR>") without the vim-endwise plugin when pressing <cr> in insert mode on autocomplete menu item it would only select the item from the autocompletion menu and would not insert a <cr> in the code.
Also note that using this snippet: inoremap <expr><CR> neocomplcache#smart_close_popup() . "\<CR>" conflicts with vim-endwise, which is issue #88.
This is cross-posting from neocomplcache issues as recommended by @Shougo.
Note that I'm also using vim-endwise. Using the recommended snippet from
doc/neocomplcache.txt(see 351a2f102460):when pressing enter when choosing autocompletion from the menu it selects this autocompletion and also moves you to the next line (i.e.
<CR>is literally inserted), while using the previous snippet for<CR>mapping in insert mode (inoremap <expr><CR> neocomplcache#smart_close_popup() . "\<CR>") without the vim-endwise plugin when pressing<cr>in insert mode on autocomplete menu item it would only select the item from the autocompletion menu and would not insert a<cr>in the code.Also note that using this snippet:
inoremap <expr><CR> neocomplcache#smart_close_popup() . "\<CR>"conflicts with vim-endwise, which is issue #88.