diff options
author | Charlie Root | 2017-05-14 01:34:23 +0200 |
---|---|---|
committer | Charlie Root | 2017-05-14 01:34:23 +0200 |
commit | 49a62e5b70d584bb490dc75ac505d6ebf2d221c1 (patch) | |
tree | d9653db7eae5b225bc594f00df57af602483ee29 | |
parent | f06d6454cae2b379b6938eba671273a201c1f0e2 (diff) | |
download | vim-49a62e5b70d584bb490dc75ac505d6ebf2d221c1.tar.bz2 vim-49a62e5b70d584bb490dc75ac505d6ebf2d221c1.zip |
cleaned the configuration up
-rw-r--r-- | doc/INSTALL | 6 | ||||
-rw-r--r-- | 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 | |||
22 | 22 | ||
23 | # download plugins and spell file for your language | 23 | # download plugins and spell file for your language |
24 | vim -c ":VundleUpdate" | 24 | vim -c ":VundleUpdate" |
25 | vim -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 |
30 | mkdir -p .local/share/Thunar/sendto/ | 34 | mkdir -p .local/share/Thunar/sendto/ |
@@ -37,6 +37,7 @@ set nocursorcolumn | " turn visual cursor column off (improves perfor | |||
37 | set nocursorline | " turn visual cursor line off (improves performance) | 37 | set nocursorline | " turn visual cursor line off (improves performance) |
38 | set nrformats+=alpha | " allows CTRL-A & CTRL-X to increment and decrement letters, not just numbers | 38 | set nrformats+=alpha | " allows CTRL-A & CTRL-X to increment and decrement letters, not just numbers |
39 | set nofoldenable | " disable code folding. I hate code folding | 39 | set nofoldenable | " disable code folding. I hate code folding |
40 | set noequalalways | " do not evenly size windows when opening new or closing old | ||
40 | set foldmethod=syntax | " foldlevel: syntax, indent, manual | 41 | set foldmethod=syntax | " foldlevel: syntax, indent, manual |
41 | set foldcolumn=1 | " if code folding gets used display it in the clutter bar, where line numbers live | 42 | set foldcolumn=1 | " if code folding gets used display it in the clutter bar, where line numbers live |
42 | set foldclose=all | " automatically fold, when the cursor leaves the folded area | 43 | set 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 |
68 | set updatetime=1000 | " updates the screen more often | 69 | set updatetime=1000 | " updates the screen more often |
70 | set viminfo+=% | " restore buffer list | ||
69 | set writedelay=0 | 71 | set writedelay=0 |
70 | set wildmenu | " use a menu in the command line | 72 | set wildmenu | " use a menu in the command line |
71 | set wildmode=longest:full | " do not preselect any entry and show all possible | 73 | set 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 | " ↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓ |
77 | call plug#begin() | 78 | call 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 ========================================================================================= |
156 | set laststatus=2 | " required by AirLine, without status line does not appear until a window split | 157 | set laststatus=2 | " required by AirLine, without status line does not appear until a window split |
157 | set background=light | 158 | set background=light | |
158 | 159 | ||
159 | Plug 'vim-airline/vim-airline' | " beautification of the mode line | 160 | Plug 'vim-airline/vim-airline' | " beautification of the mode line |
160 | let g:airline_extensions = ['tabline', 'branch', 'syntastic', 'whitespace', 'ycm'] | 161 | let g:airline_section_c = "" | " was: %F |
161 | let b:airline_whitespace_checks = ['indent', 'trailing', 'long', 'mixed-indent-file'] | 162 | let g:airline_detect_modified = 1 | |
162 | let g:airline_section_c = "" | " was: %F | 163 | let g:airline_detect_paste = 0 | |
163 | let g:airline#extensions#tagbar#flags = 'f' | " even though the airline extension is off this controls :h tagbar-extend | 164 | let g:airline_exclude_preview = 0 | |
164 | let g:airline#extensions#tabline#left_alt_sep = '' | 165 | let g:airline_inactive_collapse = 1 | |
165 | let g:airline#extensions#tabline#left_sep = '' | 166 | let g:airline_powerline_fonts = 1 | |
166 | let g:airline#extensions#tabline#right_alt_sep = '' | 167 | let g:airline_skip_empty_sections = 1 | |
167 | let g:airline#extensions#tabline#right_sep = '' | 168 | " let g:airline_extensions = [] | |
169 | |||
170 | let g:airline#extensions#tabline#enabled = 1 | | ||
171 | let g:airline#extensions#tabline#left_alt_sep = '' | | ||
172 | let g:airline#extensions#tabline#left_sep = '' | | ||
173 | let g:airline#extensions#tabline#right_alt_sep = '' | | ||
174 | let g:airline#extensions#tabline#right_sep = '' | | ||
168 | let g:airline#extensions#tabline#fnamemod = ':t' | " let airline just show the filename without its path | 175 | let g:airline#extensions#tabline#fnamemod = ':t' | " let airline just show the filename without its path |
169 | let g:airline#extensions#tabline#disable_refresh = 0 | | 176 | let g:airline#extensions#tabline#disable_refresh = 0 | |
170 | let g:airline#extensions#tabline#enabled = 1 | | 177 | let g:airline#extensions#tabline#enabled = 1 | |
171 | let g:airline#extensions#tabline#show_buffers = 1 | | 178 | let g:airline#extensions#tabline#show_buffers = 1 | |
172 | let g:airline#extensions#tabline#show_tabs = 0 | | 179 | let g:airline#extensions#tabline#show_tabs = 0 | |
173 | let g:airline#extensions#tagbar#enabled = 0 | | 180 | let g:airline#extensions#tabline#ignore_bufadd_pat = '\c\vgundo|undotree|vimfiler|tagbar|nerd_tree|preview|^$' |
174 | let g:airline#extensions#whitespace#enabled = 1 | | 181 | |
175 | let g:airline#extensions#wordcount#enabled = 0 | | 182 | let g:airline_extensions#branch#enabled = 1 | |
176 | let g:airline_detect_modified = 1 | | 183 | let g:airline_extensions#whitespace#enabled = 1 | |
177 | let g:airline_detect_paste = 0 | | 184 | let b:airline_whitespace_checks = ['indent', 'trailing', 'long', 'mixed-indent-file'] |
178 | let g:airline_exclude_preview = 0 | | 185 | |
179 | let g:airline_inactive_collapse = 1 | | 186 | if has('python') |
180 | let g:airline_powerline_fonts = 1 | | 187 | let g:airline_extensions#syntastic#enabled = 1 | |
181 | let g:airline_skip_empty_sections = 1 | | 188 | let g:airline_extensions#ycm#enabled = 1 | |
182 | " fixes unneccessary redraw, when e.g. opening Gundo window | 189 | endif |
183 | let airline#extensions#tabline#ignore_bufadd_pat = | 190 | |
184 | \ '\c\vgundo|undotree|vimfiler|tagbar|nerd_tree|preview|^$' | 191 | let g:airline#extensions#tagbar#flags = 'f' | " even though the airline extension is off this controls :h tagbar-extend |
192 | let g:airline#extensions#tagbar#enabled = 0 | | ||
185 | 193 | ||
186 | " AIRLINE_Theme: | 194 | " AIRLINE_Theme: |
187 | Plug 'vim-airline/vim-airline-themes' | " airline themes to match any light and dark terminal using :AirlineTheme | 195 | Plug 'vim-airline/vim-airline-themes' | " airline themes to match any light and dark terminal using :AirlineTheme |
188 | let base16colorspace=256 | 196 | let base16colorspace=256 | |
189 | let g:airline_theme='base16' | " specifies which colorscheme should airline uses | 197 | let g:airline_theme='base16' | " specifies which colorscheme should airline uses |
198 | let 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 |
192 | let 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: |
389 | if has("gui_running") | 397 | if 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 |