From 4a6d3efdcd52a7e358af30027acf6950010e26be Mon Sep 17 00:00:00 2001 From: Max Christian Pohle Date: Sun, 7 May 2017 17:40:07 +0200 Subject: Many fine grained improvements --- vimrc-full | 63 +++++++++++++++++++++++++++++++++++++++++++++++++------------- 1 file changed, 50 insertions(+), 13 deletions(-) (limited to 'vimrc-full') diff --git a/vimrc-full b/vimrc-full index e18b9f5..f4a9faa 100644 --- a/vimrc-full +++ b/vimrc-full @@ -36,7 +36,7 @@ Plug 'vim-airline/vim-airline' | " beautification of the set laststatus=2 | " required by AirLine, without status line does not appear until a window split let g:airline_extensions = ['tabline', 'branch', 'syntastic', 'tagbar', 'whitespace', 'ycm'] let b:airline_whitespace_checks = ['indent', 'trailing', 'long', 'mixed-indent-file'] -let g:airline_section_c = "" | " was: %F +" let g:airline_section_c = "" | " was: %F let g:airline#extensions#tagbar#flags = 'f' | " even though the airline extension is off this controls :h tagbar-extend let g:airline#extensions#tabline#left_sep = ' ' let g:airline#extensions#tabline#left_alt_sep = ' | ' @@ -48,11 +48,12 @@ let g:airline#extensions#tabline#show_tabs = 0 | let g:airline#extensions#tagbar#enabled = 0 | let g:airline#extensions#whitespace#enabled = 1 | let g:airline#extensions#wordcount#enabled = 0 | -let g:airline_detect_modified = 0 | +let g:airline_detect_modified = 1 | let g:airline_detect_paste = 0 | -let g:airline_exclude_preview = 0 | +let g:airline_exclude_preview = 1 | let g:airline_inactive_collapse = 1 | let g:airline_powerline_fonts = 1 | +let g:airline_skip_empty_sections = 1 | " AIRLINE_Theme: Plug 'vim-airline/vim-airline-themes' | " airline themes to match any light and dark terminal using :AirlineTheme let g:airline_theme='base16' | " specifies which colorscheme should airline uses @@ -61,7 +62,7 @@ let g:airline_theme='base16' | " specifies which colorsc " NERDTree: replaces NetRW, as long as it has so many bugs -Plug 'scrooloose/nerdtree' | " +Plug 'scrooloose/nerdtree' | " let NERDTreeCascadeSingleChildDir = 0 | " I don't get how one can use to create files in that included directory let NERDTreeShowBookmarks = 1 | " show bookmarks by default (when opening for the first time) let NERDTreeIgnore = ['\.aux$'] @@ -126,6 +127,9 @@ let g:ycm_key_list_select_completion = [''] let g:ycm_key_list_previous_completion = [''] let g:ycm_global_ycm_extra_conf = '~/src/ycm_extra_conf.py' let g:ycm_semantic_triggers = { 'c': [ 're!.' ] } +let g:ycm_python_binary_path = 'python' " the python interpreter of choice (for code checking) + +nnoremap :YcmCompleter FixIt " 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=[] @@ -243,11 +247,16 @@ set nocursorcolumn | " turn visual cursor column off (improves perfor set nocursorline | " turn visual cursor line off (improves performance) set nrformats+=alpha | " allows CTRL-A & CTRL-X to increment and decrement letters, not just numbers set nofoldenable | " disable code folding. I hate code folding -set foldcolumn=4 | " if code folding gets used display it in the clutter bar, where line numbers live +set foldmethod=syntax | " foldlevel: syntax, indent, manual +set foldcolumn=1 | " if code folding gets used display it in the clutter bar, where line numbers live +set foldclose=all | " automatically fold, when the cursor leaves the folded area +set foldopen=all | " unfold when cursor moves into the closed fold +set foldtext=Foldtext() | " set relativenumber | " relative line numbers can speed up navigation set noshowmode | " because we are using some powerline derivat set nostartofline | " when scrolling: do not move the cursor to column 1 set notimeout ttimeout | " improves performance but is known to cause problems on slow terminals +set ttimeoutlen=10 | " set esc key timeout in ms- set nowrap | " but do not (by default) wrap long lines around set number | " turn line numbers on/off (performance decreases when they are shown) set pumheight=8 | " Determines the maximum number of items to show in the popup menu for @@ -265,9 +274,8 @@ set winminwidth=30 | " (and all other windows, so TODO: watch out) set tags+=../tags " set textwidth=100 | " line length (80 used to be default, but...) set textwidth=120 | " better done with modeline -set colorcolumn=120 | " better done with modeline +set colorcolumn= | " not used, because we have a :match directive for textwidth set ts=4 sts=4 sw=4 expandtab | " better done with a modeline -set ttimeoutlen=10 | " set esc key timeout in ms- set updatetime=1000 | " updates the screen more often set writedelay=0 set lcs+=space:· | " local space char @@ -276,11 +284,17 @@ set lcs+=space:· | " local space char " set term=xtermc | " may be required on solaris set t_Co=256 | " required on some ssh sessions let &t_Co=256 -set background=light | " hint how the terminal background looks like +" set termguicolors +" set background=light | " hint how the terminal background looks like + +" uses the default terminal background color as background (allows transparency) +" autocmd Colorscheme * set background=dark + " set termguicolors let base16colorspace=256 if filereadable(expand("~/.vimrc_background")) + set background=light source ~/.vimrc_background else colorscheme base16-phd @@ -291,11 +305,26 @@ else " colorscheme base16-default-dark endif -highlight normal ctermbg=NONE | " uses the default terminal background color as background (allows transparency) -highlight CursorLineNr ctermbg=black ctermfg=NONE +" highlight Normal ctermbg=NONE ctermfg=white +highlight NonText ctermbg=NONE ctermfg=white +highlight! CursorLineNr cterm=inverse | " ctermbg=black ctermfg=NONE +highlight! Pmenu ctermbg=LightYellow ctermfg=blue cterm=italic +highlight! MoreMsg cterm=inverse +highlight! link Folded LineNr +highlight Cursor guibg=green +highlight! link VertSplit LineNr +execute ':match ColorColumn /\%>'.&textwidth.'v./' + + +set fillchars+=fold:\ | " +set fillchars+=vert:\│ | " cool vertical split char +" set fillchars+=stlnc:\― | " + + + + -highlight Cursor guibg=green " let &t_EI .= "\[0 q" " let &t_SI = "\]12;green\x7" if has('autocmd') @@ -314,7 +343,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:˲\ | " symbols used when using :set list (which displays non-printable chars) + set listchars+=tab:⮁\ | " symbols used when using :set list (which displays non-printable chars) 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) @@ -338,7 +367,7 @@ if has('cscope') " compiled with cscope support? cnoreabbrev csh cs help command! -nargs=0 Cscope cs add $VIMSRC/src/cscope.out $VIMSRC/src -endif +endif " GUI_VERSION: if has("gui_running") @@ -581,3 +610,11 @@ let g:netrw_winsize = 20 | " window size in percent " \ 'separator': { 'left': "\ue0b0", 'right': "\ue0b2" }, " \ 'subseparator': { 'left': "\ue0b1", 'right': "\ue0b3" } " \ } + +" highlight! link airline_warning Error +" autocmd User AirlineAfterTheme highlight! airline_warning ctermbg=NONE +" autocmd AirlineAfterTheme highlight! airline_warning ctermbg=NONE +" autocmd BufEnter * highlight! link airline_warning Error + + +" autocmd BufEnter * lcd %:p:h | " Plugin vim-rooter get used instead (which is much more sane as well) -- cgit v1.2.3