Skip to content

Commit

Permalink
Fix to make neocachecompl work with hold time
Browse files Browse the repository at this point in the history
  • Loading branch information
mutewinter committed Jan 26, 2012
1 parent 90bf23d commit f04530d
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions vimrc
Expand Up @@ -304,6 +304,17 @@ let g:neocomplcache_auto_completion_start_length=1
inoremap <expr><TAB> pumvisible() ? "\<C-n>" : "\<TAB>"
inoremap <expr><S-TAB> pumvisible() ? "\<C-p>" : "\<S-TAB>"
" Required to make neocomplcache_cursor_hold_i_time work
" See https://github.com/Shougo/neocomplcache/issues/140
autocmd InsertEnter * call s:on_insert_enter()

function! s:on_insert_enter()
if &updatetime > g:neocomplcache_cursor_hold_i_time
let s:update_time_save = &updatetime
let &updatetime = g:neocomplcache_cursor_hold_i_time
endif
endfunction

" ---------------
" Lusty Juggler
" ---------------
Expand Down

0 comments on commit f04530d

Please sign in to comment.