aboutsummaryrefslogtreecommitdiff
path: root/plugin
diff options
context:
space:
mode:
authorMax Christian Pohle2023-10-20 19:47:50 +0200
committerMax Christian Pohle2023-10-20 19:47:50 +0200
commitbb61c6f72c569dce81a619bf601524b8e627dfd2 (patch)
treee2c1ad924bf94e8c173c4455b8b064c07d649f61 /plugin
parent7443eb6e3889e2fca9bc3bdcefd7569590f8f2a2 (diff)
downloadvim-bb61c6f72c569dce81a619bf601524b8e627dfd2.tar.bz2
vim-bb61c6f72c569dce81a619bf601524b8e627dfd2.zip
Furter house keeping
Diffstat (limited to 'plugin')
-rw-r--r--plugin/max-find-bash.vim2
-rw-r--r--plugin/max-highlight-word-under-cursor.vim26
-rw-r--r--plugin/youcompleteme.vim2
3 files changed, 3 insertions, 27 deletions
diff --git a/plugin/max-find-bash.vim b/plugin/max-find-bash.vim
index a5e243b..29cb7c3 100644
--- a/plugin/max-find-bash.vim
+++ b/plugin/max-find-bash.vim
@@ -6,4 +6,6 @@ if filereadable("/bin/bash")
6 set shell=/bin/bash 6 set shell=/bin/bash
7elseif filereadable("/usr/local/bin/bash") 7elseif filereadable("/usr/local/bin/bash")
8 set shell=/usr/local/bin/bash 8 set shell=/usr/local/bin/bash
9elseif has("win32")
10 set shell = 'cmd.exe'
9endif 11endif
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 @@
1"=======================================================================================================================
2" HIGHLIGHT_WORD_UNDER_CURSOR:
3"=======================================================================================================================
4
5let w:m1 = 0
6function! HighlightWordUnderCursor()
7 if(exists('w:m1') && w:m1 > 0)
8 silent! call matchdelete(w:m1)
9 let w:m1 = 0
10 endif
11 let l:currentword = escape(expand('<cword>'), '.')
12 if(strlen(l:currentword) > 0)
13 let w:m1=100
14 let l:q = matchstr(expand('<cword>'), '\x\{6\}')
15 if(l:q != "")
16 exec 'highlight! CurrentColor guibg=#'.l:q
17 " call matchadd('CurrentColor', escape(expand('<cWORD>'), '.'), -1, w:m1)
18 " if(match(expand('<cword>'), '^#\x\{6\}\|^0x\x\{6\}') == 0)
19 hi CurrentColor
20 else
21 silent! call matchadd('Underline', '\<'.l:currentword.'\>', -1, w:m1)
22 endif
23 endif
24endfunction
25
26autocmd CursorHold,CursorHoldI * call HighlightWordUnderCursor()
diff --git a/plugin/youcompleteme.vim b/plugin/youcompleteme.vim
index 9e17ad5..a241dae 100644
--- a/plugin/youcompleteme.vim
+++ b/plugin/youcompleteme.vim
@@ -4,7 +4,7 @@ augroup YOUCOMPLETEME
4 4
5 let g:ycm_autoclose_preview_window_after_insertion = 0 5 let g:ycm_autoclose_preview_window_after_insertion = 0
6 let g:ycm_auto_trigger = 1 6 let g:ycm_auto_trigger = 1
7 let g:ycm_collect_identifiers_from_tags_files = 1 " Let YCM read tags from Ctags file 7 let g:ycm_collect_identifiers_from_tags_files = 0 " Let YCM read tags from Ctags file
8 let g:ycm_confirm_extra_conf = 0 " security is overrated ;) 8 let g:ycm_confirm_extra_conf = 0 " security is overrated ;)
9 let g:ycm_always_populate_location_list = 0 " we can manually run :YcmDiags to do that 9 let g:ycm_always_populate_location_list = 0 " we can manually run :YcmDiags to do that
10 10
..