Shougo/neocomplcache.vim

Does not complete

antidotejack opened this issue · 3 comments

Its seem to be working, the popup shows up, I can move the cursor to select the option but when pressing enter or tab nothing happens.

Shougo commented

Please see the documentation. You need to mapped.

	" <CR>: close popup and save indent.
	inoremap <silent> <CR> <C-r>=<SID>my_cr_function()<CR>
	function! s:my_cr_function()
	  return neocomplcache#smart_close_popup() . "\<CR>"
	  " For no inserting <CR> key.
	  "return pumvisible() ? neocomplcache#close_popup() : "\<CR>"
	endfunction
	" <TAB>: completion.
	inoremap <expr><TAB>  pumvisible() ? "\<C-n>" : "\<TAB>"

thanks a lot, this is a beautiful plugging

Shougo commented

It is 15 years old though.