From f9d13d8450ce640cc1efe725ef0b45f626fa38b8 Mon Sep 17 00:00:00 2001 From: Max Christian Pohle Date: Sun, 10 Oct 2021 12:44:18 +0200 Subject: Added end-of-word to syntax group --- 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 403164a..66e661d 100644 --- a/plugin/vim-under-the-cursor.vim +++ b/plugin/vim-under-the-cursor.vim @@ -43,7 +43,7 @@ function! HighlightWordUnderCursor() endif exec 'syntax clear ' . l:color - exec 'syntax match ' . l:color . ' /\#' . l:q . '/' + exec 'syntax match ' . l:color . ' /\#' . l:q . '\>/' else silent! call matchadd('Underline', '\<'.l:currentword.'\>', -1, w:m1) endif -- cgit v1.2.3