diff options
Diffstat (limited to 'plugin')
-rw-r--r-- | plugin/max-find-bash.vim | 2 | ||||
-rw-r--r-- | plugin/max-highlight-word-under-cursor.vim | 26 | ||||
-rw-r--r-- | plugin/youcompleteme.vim | 2 |
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 |
7 | elseif filereadable("/usr/local/bin/bash") | 7 | elseif filereadable("/usr/local/bin/bash") |
8 | set shell=/usr/local/bin/bash | 8 | set shell=/usr/local/bin/bash |
9 | elseif has("win32") | ||
10 | set shell = 'cmd.exe' | ||
9 | endif | 11 | endif |
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 | |||
5 | let w:m1 = 0 | ||
6 | function! 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 | ||
24 | endfunction | ||
25 | |||
26 | autocmd 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 | ||