aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMax Christian Pohle2017-06-16 10:10:04 +0200
committerMax Christian Pohle2017-06-16 10:10:04 +0200
commitcd4cb069534daa924c541d9e23a9e1c7d77ac4d6 (patch)
tree8538b482f9a7a4fdcc4b90b2019fe3204dd322f0
parent6781e162edd90353e880f4b29cf4aa821df9eaac (diff)
downloadvim-cd4cb069534daa924c541d9e23a9e1c7d77ac4d6.tar.bz2
vim-cd4cb069534daa924c541d9e23a9e1c7d77ac4d6.zip
Fixed: Highlight current word respects word boundaries
-rw-r--r--vimrc-full5
1 files changed, 4 insertions, 1 deletions
diff --git a/vimrc-full b/vimrc-full
index 0c0cbbf..a3c59c2 100644
--- a/vimrc-full
+++ b/vimrc-full
@@ -672,6 +672,9 @@ if has("autocmd")
672 672
673 let @l = ":let g:signify_vcs_cmds={'git': 'git diff --no-color --no-ext-diff -U0 HEAD^ -- %f'}|:SignifyRefresh" 673 let @l = ":let g:signify_vcs_cmds={'git': 'git diff --no-color --no-ext-diff -U0 HEAD^ -- %f'}|:SignifyRefresh"
674 674
675 let @r = ":!nvr --servername /tmp/nvimsocket --remote %"
676
677
675 " exec current line as a command, insert output of command (from: https://youtu.be/MquaityA1SM?t=35m45s) 678 " exec current line as a command, insert output of command (from: https://youtu.be/MquaityA1SM?t=35m45s)
676 nnoremap Q !!$SHELL<CR> 679 nnoremap Q !!$SHELL<CR>
677 680
@@ -754,7 +757,7 @@ function! HighlightWordUnderCursor()
754 let l:currentword = escape(expand('<cword>'), '.') 757 let l:currentword = escape(expand('<cword>'), '.')
755 if(strlen(l:currentword) > 0) 758 if(strlen(l:currentword) > 0)
756 let w:m1=100 759 let w:m1=100
757 silent! call matchadd('WordBold', l:currentword, -1, w:m1) 760 silent! call matchadd('WordBold', '\<'.l:currentword.'\>', -1, w:m1)
758 endif 761 endif
759endfunction 762endfunction
760 763
..