aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCharlie Root2017-05-14 01:34:23 +0200
committerCharlie Root2017-05-14 01:34:23 +0200
commit49a62e5b70d584bb490dc75ac505d6ebf2d221c1 (patch)
treed9653db7eae5b225bc594f00df57af602483ee29
parentf06d6454cae2b379b6938eba671273a201c1f0e2 (diff)
downloadvim-49a62e5b70d584bb490dc75ac505d6ebf2d221c1.tar.bz2
vim-49a62e5b70d584bb490dc75ac505d6ebf2d221c1.zip
cleaned the configuration up
-rw-r--r--doc/INSTALL6
-rw-r--r--vimrc-full75
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
22 22
23# download plugins and spell file for your language 23# download plugins and spell file for your language
24vim -c ":VundleUpdate" 24vim -c ":VundleUpdate"
25vim -c ":set spell" 25# vim -c ":set spell"
26# vim +set\ spell # < maybe that works as well 26# vim +set\ spell # < maybe that works as well
27 27
28:call spellfile#LoadFile(expand("de"))
29
30
31
28# create an entry in file managers right click menu 'open with' allowing you to 32# create an entry in file managers right click menu 'open with' allowing you to
29# open the file in a vim tab 33# open the file in a vim tab
30mkdir -p .local/share/Thunar/sendto/ 34mkdir -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
37set nocursorline | " turn visual cursor line off (improves performance) 37set nocursorline | " turn visual cursor line off (improves performance)
38set nrformats+=alpha | " allows CTRL-A & CTRL-X to increment and decrement letters, not just numbers 38set nrformats+=alpha | " allows CTRL-A & CTRL-X to increment and decrement letters, not just numbers
39set nofoldenable | " disable code folding. I hate code folding 39set nofoldenable | " disable code folding. I hate code folding
40set noequalalways | " do not evenly size windows when opening new or closing old
40set foldmethod=syntax | " foldlevel: syntax, indent, manual 41set foldmethod=syntax | " foldlevel: syntax, indent, manual
41set foldcolumn=1 | " if code folding gets used display it in the clutter bar, where line numbers live 42set foldcolumn=1 | " if code folding gets used display it in the clutter bar, where line numbers live
42set foldclose=all | " automatically fold, when the cursor leaves the folded area 43set foldclose=all | " automatically fold, when the cursor leaves the folded area
@@ -66,12 +67,12 @@ set tags+=../tags
66" set textwidth=100 | " line length (80 used to be default, but...) 67" set textwidth=100 | " line length (80 used to be default, but...)
67" set colorcolumn= | " not used, because we have a :match directive for textwidth 68" set colorcolumn= | " not used, because we have a :match directive for textwidth
68set updatetime=1000 | " updates the screen more often 69set updatetime=1000 | " updates the screen more often
70set viminfo+=% | " restore buffer list
69set writedelay=0 71set writedelay=0
70set wildmenu | " use a menu in the command line 72set wildmenu | " use a menu in the command line
71set wildmode=longest:full | " do not preselect any entry and show all possible 73set wildmode=longest:full | " do not preselect any entry and show all possible
72"======================================================================================================================= 74"=======================================================================================================================
73 75
74
75" START: LOADING PLUGINS 76" START: LOADING PLUGINS
76" ↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓ 77" ↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓
77call plug#begin() 78call plug#begin()
@@ -153,43 +154,50 @@ nnoremap <F9> :TagbarToggle<CR>| " bind TagBar to Hotkey Ct
153 154
154 155
155" AIRLINE: a fancy status line ========================================================================================= 156" AIRLINE: a fancy status line =========================================================================================
156set laststatus=2 | " required by AirLine, without status line does not appear until a window split 157set laststatus=2 | " required by AirLine, without status line does not appear until a window split
157set background=light 158set background=light |
158 159
159Plug 'vim-airline/vim-airline' | " beautification of the mode line 160Plug 'vim-airline/vim-airline' | " beautification of the mode line
160let g:airline_extensions = ['tabline', 'branch', 'syntastic', 'whitespace', 'ycm'] 161let g:airline_section_c = "" | " was: %F
161let b:airline_whitespace_checks = ['indent', 'trailing', 'long', 'mixed-indent-file'] 162let g:airline_detect_modified = 1 |
162let g:airline_section_c = "" | " was: %F 163let g:airline_detect_paste = 0 |
163let g:airline#extensions#tagbar#flags = 'f' | " even though the airline extension is off this controls :h tagbar-extend 164let g:airline_exclude_preview = 0 |
164let g:airline#extensions#tabline#left_alt_sep = '' 165let g:airline_inactive_collapse = 1 |
165let g:airline#extensions#tabline#left_sep = '' 166let g:airline_powerline_fonts = 1 |
166let g:airline#extensions#tabline#right_alt_sep = '' 167let g:airline_skip_empty_sections = 1 |
167let g:airline#extensions#tabline#right_sep = '' 168" let g:airline_extensions = [] |
169
170let g:airline#extensions#tabline#enabled = 1 |
171let g:airline#extensions#tabline#left_alt_sep = '' |
172let g:airline#extensions#tabline#left_sep = '' |
173let g:airline#extensions#tabline#right_alt_sep = '' |
174let g:airline#extensions#tabline#right_sep = '' |
168let g:airline#extensions#tabline#fnamemod = ':t' | " let airline just show the filename without its path 175let g:airline#extensions#tabline#fnamemod = ':t' | " let airline just show the filename without its path
169let g:airline#extensions#tabline#disable_refresh = 0 | 176let g:airline#extensions#tabline#disable_refresh = 0 |
170let g:airline#extensions#tabline#enabled = 1 | 177let g:airline#extensions#tabline#enabled = 1 |
171let g:airline#extensions#tabline#show_buffers = 1 | 178let g:airline#extensions#tabline#show_buffers = 1 |
172let g:airline#extensions#tabline#show_tabs = 0 | 179let g:airline#extensions#tabline#show_tabs = 0 |
173let g:airline#extensions#tagbar#enabled = 0 | 180let g:airline#extensions#tabline#ignore_bufadd_pat = '\c\vgundo|undotree|vimfiler|tagbar|nerd_tree|preview|^$'
174let g:airline#extensions#whitespace#enabled = 1 | 181
175let g:airline#extensions#wordcount#enabled = 0 | 182let g:airline_extensions#branch#enabled = 1 |
176let g:airline_detect_modified = 1 | 183let g:airline_extensions#whitespace#enabled = 1 |
177let g:airline_detect_paste = 0 | 184let b:airline_whitespace_checks = ['indent', 'trailing', 'long', 'mixed-indent-file']
178let g:airline_exclude_preview = 0 | 185
179let g:airline_inactive_collapse = 1 | 186if has('python')
180let g:airline_powerline_fonts = 1 | 187 let g:airline_extensions#syntastic#enabled = 1 |
181let g:airline_skip_empty_sections = 1 | 188 let g:airline_extensions#ycm#enabled = 1 |
182" fixes unneccessary redraw, when e.g. opening Gundo window 189endif
183let airline#extensions#tabline#ignore_bufadd_pat = 190
184 \ '\c\vgundo|undotree|vimfiler|tagbar|nerd_tree|preview|^$' 191let g:airline#extensions#tagbar#flags = 'f' | " even though the airline extension is off this controls :h tagbar-extend
192let g:airline#extensions#tagbar#enabled = 0 |
185 193
186" AIRLINE_Theme: 194" AIRLINE_Theme:
187Plug 'vim-airline/vim-airline-themes' | " airline themes to match any light and dark terminal using :AirlineTheme 195Plug 'vim-airline/vim-airline-themes' | " airline themes to match any light and dark terminal using :AirlineTheme
188let base16colorspace=256 196let base16colorspace=256 |
189let g:airline_theme='base16' | " specifies which colorscheme should airline uses 197let g:airline_theme='base16' | " specifies which colorscheme should airline uses
198let g:airline#themes#base16#constant = 0 |
190" let g:solarized_base16 = 1 199" let g:solarized_base16 = 1
191" let g:airline_base16_improved_contrast = 1 200" let g:airline_base16_improved_contrast = 1
192let g:airline#themes#base16#constant = 0
193" let g:airline_theme='badcat' | " specifies which colorscheme should airline uses 201" let g:airline_theme='badcat' | " specifies which colorscheme should airline uses
194" let g:airline_theme='papercolor' | " specifies which colorscheme should ionirline uses 202" let g:airline_theme='papercolor' | " specifies which colorscheme should ionirline uses
195 203
@@ -387,6 +395,7 @@ endif
387 395
388" GUI_VERSION: 396" GUI_VERSION:
389if has("gui_running") 397if has("gui_running")
398 set browsedir=buffer
390 set toolbar+=text 399 set toolbar+=text
391 set guioptions+=eig 400 set guioptions+=eig
392 set guioptions-=T | " toolbar 401 set guioptions-=T | " toolbar
..