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 --- doc/shortcuts.txt | 1 + gtk-3.0.css | 6 ++---- vimrc-full | 21 ++++++++++++++------- 3 files changed, 17 insertions(+), 11 deletions(-) diff --git a/doc/shortcuts.txt b/doc/shortcuts.txt index a01c7a1..a5c33ae 100644 --- a/doc/shortcuts.txt +++ b/doc/shortcuts.txt @@ -126,6 +126,7 @@ CTRL-U = display completions: user-defined [annoyances] gv = visual mode: reselect last selection CTRL+o = lets the caret jump back to the previous location +CTRL+L = redraws the complete screen [netrw] diff --git a/gtk-3.0.css b/gtk-3.0.css index 610edf0..3f85056 100644 --- a/gtk-3.0.css +++ b/gtk-3.0.css @@ -9,14 +9,13 @@ font-family: "Source Code Pro"; font-weight:bold; font-size:9pt; - border:0px; - outline:0px; + border:0; + outline:0; } * { border-width:0px; outline-width:0px; - } #vim-menubar { @@ -25,7 +24,6 @@ border-width:0px; border-bottom:2px solid #6060af; border-radius:1em; - } /* 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