diff --git a/.config/vim/vimrc.d/70-functions.vim b/.config/vim/vimrc.d/70-functions.vim index d519d8d..e9faa99 100644 --- a/.config/vim/vimrc.d/70-functions.vim +++ b/.config/vim/vimrc.d/70-functions.vim @@ -7,5 +7,7 @@ if (exists('+autoread') && &autoread) " command line window silent! checktime endfunc - call timer_start(1000, 'CheckTime', {'repeat': -1}) + if (!exists('g:checktime_timer')) + let g:checktime_timer = timer_start(1000, 'CheckTime', {'repeat': -1}) + endif endif