Shougo / neocomplcache.vim

Ultimate auto-completion system for Vim.
http://www.vim.org/scripts/script.php?script_id=2620
1.72k stars 135 forks source link

Does not complete #512

Closed antidotejack closed 11 months ago

antidotejack commented 11 months ago

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 11 months ago

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>"
antidotejack commented 10 months ago

thanks a lot, this is a beautiful plugging

Shougo commented 10 months ago

It is 15 years old though.