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

An issue about popup menu #431

Closed ShawnHuang closed 11 years ago

ShawnHuang commented 11 years ago

I hope the menu only pops up when I type the letters[a-z||0-9], and the arrows don't trigger the menu.

I try inoremap neocomplcache#close_popup() . "" inoremap neocomplcache#close_popup() . "" inoremap neocomplcache#close_popup() . "" inoremap neocomplcache#close_popup() . "" but it's no use.

When I type arrows ,it display "neocomplcache#close_popup() " on the file

I'm a little confused. Is there any other configuration to implement for this purples?

ujihisa commented 11 years ago

<expr> is missing

ShawnHuang commented 11 years ago

It still no use when I try the following code.>_< There is a problem to display '<' or '>' @github

" For cursor moving in insert mode(Not recommended) "inoremap <expr><Left> neocomplcache#close_popup() . "" "inoremap <expr><Right> neocomplcache#close_popup() . "" "inoremap <expr><Up> neocomplcache#close_popup() . "" "inoremap <expr><Down> neocomplcache#close_popup() . ""

Shougo commented 11 years ago

Please refer to FAQ.

Q: I like moving cursor by cursor-keys.  But neocomplcache popups menus...

A: Please set this in your .vimrc.  Note that this feature requires Vim 7.3.418
or later.
    let g:neocomplcache_enable_insert_char_pre = 1
ShawnHuang commented 11 years ago

Thank you for your reply. This plugin is really useful for me.