Created
November 15, 2012 20:07
-
-
Save rondale-sc/4080918 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Nice job!