" 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 if (!exists('g:checktime_timer')) let g:checktime_timer = timer_start(1000, 'CheckTime', {'repeat': -1}) endif endif