From 49a62e5b70d584bb490dc75ac505d6ebf2d221c1 Mon Sep 17 00:00:00 2001 From: Charlie Root Date: Sun, 14 May 2017 01:34:23 +0200 Subject: cleaned the configuration up --- doc/INSTALL | 6 ++++- vimrc-full | 75 ++++++++++++++++++++++++++++++++++--------------------------- 2 files changed, 47 insertions(+), 34 deletions(-) diff --git a/doc/INSTALL b/doc/INSTALL index 0025cca..0d2d95f 100644 --- a/doc/INSTALL +++ b/doc/INSTALL @@ -22,9 +22,13 @@ python2 ./install.py --clang-completer # download plugins and spell file for your language vim -c ":VundleUpdate" -vim -c ":set spell" +# vim -c ":set spell" # vim +set\ spell # < maybe that works as well +:call spellfile#LoadFile(expand("de")) + + + # create an entry in file managers right click menu 'open with' allowing you to # open the file in a vim tab mkdir -p .local/share/Thunar/sendto/ diff --git a/vimrc-full b/vimrc-full index 47bcc5e..c5f587b 100644 --- a/vimrc-full +++ b/vimrc-full @@ -37,6 +37,7 @@ 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 noequalalways | " do not evenly size windows when opening new or closing old 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 @@ -66,12 +67,12 @@ set tags+=../tags " set textwidth=100 | " line length (80 used to be default, but...) " set colorcolumn= | " not used, because we have a :match directive for textwidth set updatetime=1000 | " updates the screen more often +set viminfo+=% | " restore buffer list set writedelay=0 set wildmenu | " use a menu in the command line set wildmode=longest:full | " do not preselect any entry and show all possible "======================================================================================================================= - " START: LOADING PLUGINS " ↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓ call plug#begin() @@ -153,43 +154,50 @@ nnoremap :TagbarToggle| " bind TagBar to Hotkey Ct " AIRLINE: a fancy status line ========================================================================================= -set laststatus=2 | " required by AirLine, without status line does not appear until a window split -set background=light - -Plug 'vim-airline/vim-airline' | " beautification of the mode line -let g:airline_extensions = ['tabline', 'branch', 'syntastic', 'whitespace', 'ycm'] -let b:airline_whitespace_checks = ['indent', 'trailing', 'long', 'mixed-indent-file'] -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_alt_sep = '' -let g:airline#extensions#tabline#left_sep = '' -let g:airline#extensions#tabline#right_alt_sep = '' -let g:airline#extensions#tabline#right_sep = '' +set laststatus=2 | " required by AirLine, without status line does not appear until a window split +set background=light | + +Plug 'vim-airline/vim-airline' | " beautification of the mode line +let g:airline_section_c = "" | " was: %F +let g:airline_detect_modified = 1 | +let g:airline_detect_paste = 0 | +let g:airline_exclude_preview = 0 | +let g:airline_inactive_collapse = 1 | +let g:airline_powerline_fonts = 1 | +let g:airline_skip_empty_sections = 1 | +" let g:airline_extensions = [] | + +let g:airline#extensions#tabline#enabled = 1 | +let g:airline#extensions#tabline#left_alt_sep = '' | +let g:airline#extensions#tabline#left_sep = '' | +let g:airline#extensions#tabline#right_alt_sep = '' | +let g:airline#extensions#tabline#right_sep = '' | let g:airline#extensions#tabline#fnamemod = ':t' | " let airline just show the filename without its path -let g:airline#extensions#tabline#disable_refresh = 0 | -let g:airline#extensions#tabline#enabled = 1 | -let g:airline#extensions#tabline#show_buffers = 1 | -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 = 1 | -let g:airline_detect_paste = 0 | -let g:airline_exclude_preview = 0 | -let g:airline_inactive_collapse = 1 | -let g:airline_powerline_fonts = 1 | -let g:airline_skip_empty_sections = 1 | -" fixes unneccessary redraw, when e.g. opening Gundo window -let airline#extensions#tabline#ignore_bufadd_pat = - \ '\c\vgundo|undotree|vimfiler|tagbar|nerd_tree|preview|^$' +let g:airline#extensions#tabline#disable_refresh = 0 | +let g:airline#extensions#tabline#enabled = 1 | +let g:airline#extensions#tabline#show_buffers = 1 | +let g:airline#extensions#tabline#show_tabs = 0 | +let g:airline#extensions#tabline#ignore_bufadd_pat = '\c\vgundo|undotree|vimfiler|tagbar|nerd_tree|preview|^$' + +let g:airline_extensions#branch#enabled = 1 | +let g:airline_extensions#whitespace#enabled = 1 | +let b:airline_whitespace_checks = ['indent', 'trailing', 'long', 'mixed-indent-file'] + +if has('python') + let g:airline_extensions#syntastic#enabled = 1 | + let g:airline_extensions#ycm#enabled = 1 | +endif + +let g:airline#extensions#tagbar#flags = 'f' | " even though the airline extension is off this controls :h tagbar-extend +let g:airline#extensions#tagbar#enabled = 0 | " AIRLINE_Theme: -Plug 'vim-airline/vim-airline-themes' | " airline themes to match any light and dark terminal using :AirlineTheme -let base16colorspace=256 -let g:airline_theme='base16' | " specifies which colorscheme should airline uses +Plug 'vim-airline/vim-airline-themes' | " airline themes to match any light and dark terminal using :AirlineTheme +let base16colorspace=256 | +let g:airline_theme='base16' | " specifies which colorscheme should airline uses +let g:airline#themes#base16#constant = 0 | " let g:solarized_base16 = 1 " let g:airline_base16_improved_contrast = 1 -let g:airline#themes#base16#constant = 0 " let g:airline_theme='badcat' | " specifies which colorscheme should airline uses " let g:airline_theme='papercolor' | " specifies which colorscheme should ionirline uses @@ -387,6 +395,7 @@ endif " GUI_VERSION: if has("gui_running") + set browsedir=buffer set toolbar+=text set guioptions+=eig set guioptions-=T | " toolbar -- cgit v1.2.3