Improved word-under-cursor matching to *only* match whole words
This commit is contained in:
parent
812e00aa3b
commit
cf9ffa6148
1 changed files with 3 additions and 1 deletions
4
vimrc
4
vimrc
|
@ -156,7 +156,9 @@ function! s:updateWUC()
|
||||||
call matchdelete(b:hlwuc)
|
call matchdelete(b:hlwuc)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
let b:hlwuc = matchadd("Underlined", expand("<cword>"))
|
let str = "\\<".escape(expand("<cword>"), "\\")."\\>"
|
||||||
|
let b:hlwuc = matchadd("Underlined", str)
|
||||||
|
echom str
|
||||||
endfunc
|
endfunc
|
||||||
function! s:toggleWUC()
|
function! s:toggleWUC()
|
||||||
augroup hlwuc
|
augroup hlwuc
|
||||||
|
|
Loading…
Reference in a new issue