如何用enter选择neocomplcache的补全内容

129 views
Skip to first unread message

CodeMan

unread,
Oct 4, 2011, 11:47:21 AM10/4/11
to Vim.cn
我用了neocomplcache这个补全插件,用tab键触发补全,可以用tab或者方向键选择补全内容,但是使用tab键在弹出列表中上下移动时,
会自动替换我的文本,而上下键则不会,不知道怎么撤销这一功能..

feng ye

unread,
Dec 20, 2011, 4:04:02 AM12/20/11
to vim...@googlegroups.com
我不知到怎么用enter来补齐,我是tab补全的
" SuperTab like snippets behavior.
imap <expr><TAB> neocomplcache#sources#snippets_complete#expandable() ? "\<Plug>(neocomplcache_snippets_expand)" : pumvisible() ? "\<C-n>" : "\<TAB>"
"inoremap <expr><TAB>  pumvisible() ? "\<C-n>" : "\<TAB>"

neocmplcache给的默认配置里,uncomment "SuperTab like snippets behavior."的注释,
然后注释掉 【inoremap <expr><TAB>  pumvisible() ? "\<C-n>" : "\<TAB>】
Reply all
Reply to author
Forward
0 new messages