From bb61c6f72c569dce81a619bf601524b8e627dfd2 Mon Sep 17 00:00:00 2001 From: Max Christian Pohle Date: Fri, 20 Oct 2023 19:47:50 +0200 Subject: Furter house keeping --- plugin/max-highlight-word-under-cursor.vim | 26 -------------------------- 1 file changed, 26 deletions(-) delete mode 100644 plugin/max-highlight-word-under-cursor.vim (limited to 'plugin/max-highlight-word-under-cursor.vim') diff --git a/plugin/max-highlight-word-under-cursor.vim b/plugin/max-highlight-word-under-cursor.vim deleted file mode 100644 index f18c212..0000000 --- a/plugin/max-highlight-word-under-cursor.vim +++ /dev/null @@ -1,26 +0,0 @@ -"======================================================================================================================= -" HIGHLIGHT_WORD_UNDER_CURSOR: -"======================================================================================================================= - -let w:m1 = 0 -function! HighlightWordUnderCursor() - if(exists('w:m1') && w:m1 > 0) - silent! call matchdelete(w:m1) - let w:m1 = 0 - endif - let l:currentword = escape(expand(''), '.') - if(strlen(l:currentword) > 0) - let w:m1=100 - let l:q = matchstr(expand(''), '\x\{6\}') - if(l:q != "") - exec 'highlight! CurrentColor guibg=#'.l:q - " call matchadd('CurrentColor', escape(expand(''), '.'), -1, w:m1) - " if(match(expand(''), '^#\x\{6\}\|^0x\x\{6\}') == 0) - hi CurrentColor - else - silent! call matchadd('Underline', '\<'.l:currentword.'\>', -1, w:m1) - endif - endif -endfunction - -autocmd CursorHold,CursorHoldI * call HighlightWordUnderCursor() -- cgit v1.2.3