From cd4cb069534daa924c541d9e23a9e1c7d77ac4d6 Mon Sep 17 00:00:00 2001 From: Max Christian Pohle Date: Fri, 16 Jun 2017 10:10:04 +0200 Subject: Fixed: Highlight current word respects word boundaries --- vimrc-full | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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") let @l = ":let g:signify_vcs_cmds={'git': 'git diff --no-color --no-ext-diff -U0 HEAD^ -- %f'}|:SignifyRefresh" + let @r = ":!nvr --servername /tmp/nvimsocket --remote %" + + " exec current line as a command, insert output of command (from: https://youtu.be/MquaityA1SM?t=35m45s) nnoremap Q !!$SHELL @@ -754,7 +757,7 @@ function! HighlightWordUnderCursor() let l:currentword = escape(expand(''), '.') if(strlen(l:currentword) > 0) let w:m1=100 - silent! call matchadd('WordBold', l:currentword, -1, w:m1) + silent! call matchadd('WordBold', '\<'.l:currentword.'\>', -1, w:m1) endif endfunction -- cgit v1.2.3