diff options
author | Max Christian Pohle | 2017-06-16 10:10:04 +0200 |
---|---|---|
committer | Max Christian Pohle | 2017-06-16 10:10:04 +0200 |
commit | cd4cb069534daa924c541d9e23a9e1c7d77ac4d6 (patch) | |
tree | 8538b482f9a7a4fdcc4b90b2019fe3204dd322f0 | |
parent | 6781e162edd90353e880f4b29cf4aa821df9eaac (diff) | |
download | vim-karlmarks-cd4cb069534daa924c541d9e23a9e1c7d77ac4d6.tar.bz2 vim-karlmarks-cd4cb069534daa924c541d9e23a9e1c7d77ac4d6.zip |
Fixed: Highlight current word respects word boundaries
-rw-r--r-- | vimrc-full | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -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 |
759 | endfunction | 762 | endfunction |
760 | 763 | ||