Skip to content

Instantly share code, notes, and snippets.

@rondale-sc
Created November 15, 2012 20:07
Show Gist options
  • Save rondale-sc/4080918 to your computer and use it in GitHub Desktop.
Save rondale-sc/4080918 to your computer and use it in GitHub Desktop.
let g:neocomplcache_enable_cursor_hold_i=1
let g:neocomplcache_cursor_hold_i_time=300
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
autocmd InsertLeave * call s:on_insert_leave()
function! s:on_insert_leave()
if &updatetime < s:update_time_save
let &updatetime = s:update_time_save
endif
endfunction
@FrankFang
Copy link

Nice job!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment