diff --git a/vimrc b/vimrc index 5b8605a..603cad3 100644 --- a/vimrc +++ b/vimrc @@ -156,7 +156,9 @@ function! s:updateWUC() call matchdelete(b:hlwuc) end end - let b:hlwuc = matchadd("Underlined", expand("")) + let str = "\\<".escape(expand(""), "\\")."\\>" + let b:hlwuc = matchadd("Underlined", str) + echom str endfunc function! s:toggleWUC() augroup hlwuc