From 98642e6ebc2ee27f20a7e26d8ab69f1e3d73059f Mon Sep 17 00:00:00 2001 From: Max Christian Pohle Date: Fri, 19 Nov 2021 00:37:35 +0100 Subject: Silenced error messages These are useful for development, but not when a command is bound to a CursorMoved autocmd ;) --- plugin/vim-under-the-cursor.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'plugin') diff --git a/plugin/vim-under-the-cursor.vim b/plugin/vim-under-the-cursor.vim index b91c2bd..ef60b7f 100644 --- a/plugin/vim-under-the-cursor.vim +++ b/plugin/vim-under-the-cursor.vim @@ -55,6 +55,6 @@ endfunction " see `:help group-name` highlight! Underlined cterm=underline gui=underline -autocmd CursorMoved,InsertLeave,TextChanged * call HighlightWordUnderCursor() +autocmd CursorMoved,InsertLeave,TextChanged * silent! call HighlightWordUnderCursor() " vim: expandtab tabstop=4 sw=4 -- cgit v1.2.3