From 73cf61bc33ace9b5c3f0eedaab5fa9a5b3f2e0a9 Mon Sep 17 00:00:00 2001 From: Max Christian Pohle Date: Thu, 5 Oct 2017 21:47:06 +0200 Subject: improved tab char, cscope menu, display performance --- vimrc-full | 21 ++++++++++++++------- 1 file changed, 14 insertions(+), 7 deletions(-) (limited to 'vimrc-full') diff --git a/vimrc-full b/vimrc-full index f798d46..f99a5c1 100644 --- a/vimrc-full +++ b/vimrc-full @@ -2,7 +2,8 @@ " scripts from the default vim installation, which do not get loaded by default, but are useful. " if filereadable($VIMRUNTIME.'/macros/editexisting.vim') -" source $VIMRUNTIME/macros/editexisting.vim +" " source $VIMRUNTIME/macros/editexisting.vim +" packadd! editexisting " endif "======================================================================================================================= @@ -51,7 +52,7 @@ if has("multi_byte") set listchars+=extends:» | " symbols used when using :set list (which displays non-printable chars) set listchars+=precedes:« | " symbols used when using :set list (which displays non-printable chars) - set listchars+=tab:\ | " + set listchars+=tab:▏\ | " set listchars+=trail:· | " symbols used when using :set list (which displays non-printable chars) " set listchars+=eol:↲ | " symbols used when using :set list (which displays non-printable chars) " set listchars+=space:· | " symbols used when using :set list (which displays non-printable chars) @@ -88,6 +89,10 @@ if has('cscope') " compiled with cscope support? endif if has('menu') + menu &Cscope.create\ and\ add\ database + \ :execute '!find -regex ".*\.\(c\\|h\\|cpp\\|cxx\\|hh\\|hpp\\|hxx\)$" cscope -i- -b -q':cscope kill -1:cscope add . + menu &Cscope.-Sep- + \ : menu &Cscope.find.C\ symbol \ :cscope find s menu &Cscope.find.definition @@ -313,7 +318,7 @@ if has("autocmd") autocmd FileType vim setlocal keywordprg=:help |. autocmd FileType c,cpp setlocal equalprg=clang-format autocmd FileType c,cpp setlocal breakat-=- - autocmd WinEnter * if &previewwindow | setlocal nonumber signcolumn=no filetype=c | endif + autocmd WinNew * if &previewwindow | setlocal nonumber signcolumn=no filetype=c nobuflisted | endif " autocmd FileType c,cpp setlocal iskeyword-=_ @@ -625,7 +630,7 @@ let g:lightline = { \ }, \ 'component_expand': { \ 'buffercurrent': 'lightline#buffer#buffercurrent2', - \ 'syntastic': 'SyntasticStatuslineFlag', + \ 'syntastic': 'SyntasticStatuslineFlag', \ }, \ 'component_type': { \ 'buffercurrent': 'tabsel', @@ -678,7 +683,7 @@ autocmd! ColorScheme * call ExtendLightlineColorTheme() let g:ycm_global_ycm_extra_conf = '.ycm_extra_conf.py' let g:ycm_semantic_triggers = { 'c': [ 're!.' ] } " let g:ycm_disable_for_files_larger_than_kb = 16384 " we have faaast computers, don't we? - let g:ycm_show_diagnostics_ui = 1 + let g:ycm_show_diagnostics_ui = 0 " disable -key for YCM so that it can be used with ultisnips let g:ycm_key_list_select_completion=[] let g:ycm_key_list_previous_completion=[] @@ -778,10 +783,12 @@ function! ExtendColorTheme() " use the default terminal background color as background (allows transparency) " highlight! Normal guibg=NONE ctermbg=NONE " highlight! NonText guibg=NONE guifg=black ctermbg=NONE ctermfg=black - highlight! EndOfBuffer guifg=white ctermfg=white + + " make the ~ (tilde) indicator invisible, which usually marks the EOF + highlight! EndOfBuffer ctermfg=bg highlight! CursorLineNr cterm=inverse | " ctermbg=black ctermfg=NONE - highlight! Pmenu ctermbg=LightYellow ctermfg=blue + highlight! Pmenu ctermbg=LightYellow ctermfg=DarkGrey highlight! PmenuSel ctermbg=blue ctermfg=LightYellow cterm=bold highlight! link PmenuSbar Pmenu -- cgit v1.2.3