12 lines
379 B
VimL
12 lines
379 B
VimL
" Functions """"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
|
|
|
|
" Check time every second to read file changes.
|
|
if (exists('+autoread') && &autoread)
|
|
function! CheckTime(timer)
|
|
" NOTE: silent the checktime call as it is an invalid command in the
|
|
" command line window
|
|
silent! checktime
|
|
endfunc
|
|
call timer_start(1000, 'CheckTime', {'repeat': -1})
|
|
endif
|