From 4b421f6b78a5af719732490a150f244dad78c508 Mon Sep 17 00:00:00 2001 From: Julian Prein Date: Sun, 24 Apr 2022 15:01:28 +0200 Subject: [PATCH] vim:funcs: Silence `checktime` call The checktime command is not available in the command line window. As the `CheckTime` function runs every second, the command line window spits out an error message every second making it practically unusable. This patch silences the `checktime` call to fix this. --- .config/vim/vimrc.d/70-functions.vim | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.config/vim/vimrc.d/70-functions.vim b/.config/vim/vimrc.d/70-functions.vim index b490000..b5b8405 100644 --- a/.config/vim/vimrc.d/70-functions.vim +++ b/.config/vim/vimrc.d/70-functions.vim @@ -11,7 +11,9 @@ endfunction " Check time every second to read file changes. if (exists('+autoread') && &autoread) function! CheckTime(timer) - checktime + " NOTE: silent the checktime call as it is an invalid command in the + " command line window + silent! checktime endfunc execute timer_start(1000, 'CheckTime', {'repeat': -1}) endif