diff --git a/.config/vim/vimrc.d/80-autocommands.vim b/.config/vim/vimrc.d/80-autocommands.vim index 2fe9d9a..4cb721e 100644 --- a/.config/vim/vimrc.d/80-autocommands.vim +++ b/.config/vim/vimrc.d/80-autocommands.vim @@ -58,8 +58,10 @@ function! HighlightCurrentWord() unlet w:cword_match_id endif if (expand('') != '') - let w:cword_match_id = matchadd('CursorColumn', - \ '\V\<' . escape(expand(''), '/\') . '\>') + let w:cword_match_id = matchadd( + \ 'CursorColumn', + \ '\V\<' . escape(expand(''), '/\') . '\>', + \ -1) endif endfunction augroup highlight_current_word