-
Notifications
You must be signed in to change notification settings - Fork 136
neocomplcache tips:
Shougo edited this page Sep 13, 2010
·
19 revisions
- The filename completion considers ‘cdpath’.
- neocomplcache implemented short filename completion.
Example: When you supplement “/usr/local/bin/hoge”, you input an initial, “/u/l/b”. - Disable auto popup
let g:neocomplcache_disable_auto_complete = 1 - Popup on <Tab>
inoremap <expr><TAB> pumvisible() ? “\<C-n>” : <SID>check_back_space() ? “\<TAB>” : “\<C-x>\<C-u>\<C-p>\<Down>”
function! s:check_back_space()“{{{
let col = col(‘.’) – 1
return !col || getline(‘.’)[col – 1] =~ ‘\s’
endfunction”}}} - Auto complete to common string and show available variants (if any)
inoremap <expr><C-l> neocomplcache#complete_common_string() - Highlighting first candidate
let g:neocomplcache_enable_auto_select = 1
inoremap <expr><C-h> neocomplcache#smart_close_popup().“\<C-h>”
inoremap <expr><BS> neocomplcache#smart_close_popup().“\<C-h>” - Choose candidate with <CR>
inoremap <expr><CR> neocomplcache#smart_close_popup() . “\<CR>”