diff options
Diffstat (limited to 'vimrc-full')
-rw-r--r-- | vimrc-full | 94 |
1 files changed, 50 insertions, 44 deletions
@@ -166,49 +166,51 @@ nnoremap <F9> :TagbarToggle<CR>| " bind TagBar to Hotkey Ct | |||
166 | set laststatus=2 | " required by AirLine, without status line does not appear until a window split | 166 | set laststatus=2 | " required by AirLine, without status line does not appear until a window split |
167 | set background=light | | 167 | set background=light | |
168 | 168 | ||
169 | Plug 'vim-airline/vim-airline' | " beautification of the mode line | 169 | Plug 'itchyny/lightline.vim' |
170 | let g:airline_section_c = "%F" | " was: %F | 170 | |
171 | let g:airline_detect_modified = 1 | | 171 | " Plug 'vim-airline/vim-airline' | " beautification of the mode line |
172 | let g:airline_detect_paste = 0 | | 172 | " let g:airline_section_c = "%F" | " was: %F |
173 | let g:airline_exclude_preview = 0 | | 173 | " let g:airline_detect_modified = 1 | |
174 | let g:airline_inactive_collapse = 1 | | 174 | " let g:airline_detect_paste = 0 | |
175 | let g:airline_powerline_fonts = 1 | | 175 | " let g:airline_exclude_preview = 0 | |
176 | let g:airline_skip_empty_sections = 1 | | 176 | " let g:airline_inactive_collapse = 1 | |
177 | " let g:airline_extensions = [] | | 177 | " let g:airline_powerline_fonts = 1 | |
178 | 178 | " let g:airline_skip_empty_sections = 1 | | |
179 | let g:airline#extensions#tabline#enabled = 1 | | 179 | " let g:airline_extensions = [] | |
180 | let g:airline#extensions#tabline#left_alt_sep = '' | | 180 | " |
181 | let g:airline#extensions#tabline#left_sep = '' | | 181 | " let g:airline#extensions#tabline#enabled = 1 | |
182 | let g:airline#extensions#tabline#right_alt_sep = '' | | 182 | " let g:airline#extensions#tabline#left_alt_sep = '' | |
183 | let g:airline#extensions#tabline#right_sep = '' | | 183 | " let g:airline#extensions#tabline#left_sep = '' | |
184 | let g:airline#extensions#tabline#fnamemod = ':t' | " let airline just show the filename without its path | 184 | " let g:airline#extensions#tabline#right_alt_sep = '' | |
185 | let g:airline#extensions#tabline#disable_refresh = 0 | | 185 | " let g:airline#extensions#tabline#right_sep = '' | |
186 | let g:airline#extensions#tabline#enabled = 1 | | 186 | " let g:airline#extensions#tabline#fnamemod = ':t' | " let airline just show the filename without its path |
187 | let g:airline#extensions#tabline#show_buffers = 1 | | 187 | " let g:airline#extensions#tabline#disable_refresh = 1 | " refresh airline on bufadd ? |
188 | let g:airline#extensions#tabline#show_tabs = 0 | | 188 | " let g:airline#extensions#tabline#enabled = 1 | |
189 | let g:airline#extensions#tabline#ignore_bufadd_pat = '\c\vgundo|undotree|vimfiler|tagbar|nerd_tree|preview|^$' | 189 | " let g:airline#extensions#tabline#show_buffers = 1 | |
190 | 190 | " let g:airline#extensions#tabline#show_tabs = 0 | | |
191 | let g:airline_extensions#branch#enabled = 1 | | 191 | " let g:airline#extensions#tabline#ignore_bufadd_pat = '\c\vgundo|undotree|vimfiler|tagbar|nerd_tree|preview|^$' |
192 | let g:airline_extensions#whitespace#enabled = 1 | | 192 | " |
193 | let b:airline_whitespace_checks = ['indent', 'trailing', 'long', 'mixed-indent-file'] | 193 | " let g:airline_extensions#branch#enabled = 1 | |
194 | 194 | " let g:airline_extensions#whitespace#enabled = 0 | " airlines whitespace check is slow :/ | |
195 | if has('python') | 195 | " let b:airline_whitespace_checks = ['indent', 'trailing', 'long', 'mixed-indent-file'] |
196 | let g:airline_extensions#syntastic#enabled = 1 | | 196 | " |
197 | let g:airline_extensions#ycm#enabled = 1 | | 197 | " if has('python') |
198 | endif | 198 | " let g:airline_extensions#syntastic#enabled = 1 | |
199 | 199 | " let g:airline_extensions#ycm#enabled = 1 | | |
200 | let g:airline#extensions#tagbar#flags = 'f' | " even though the airline extension is off this controls :h tagbar-extend | 200 | " endif |
201 | let g:airline#extensions#tagbar#enabled = 0 | | 201 | " |
202 | 202 | " let g:airline#extensions#tagbar#flags = 'f' | " even though the airline extension is off this controls :h tagbar-extend | |
203 | " AIRLINE_Theme: | 203 | " let g:airline#extensions#tagbar#enabled = 0 | |
204 | Plug 'vim-airline/vim-airline-themes' | " airline themes to match any light and dark terminal using :AirlineTheme | 204 | " |
205 | let base16colorspace=256 | | 205 | " " AIRLINE_Theme: |
206 | let g:airline_theme='base16' | " specifies which colorscheme should airline uses | 206 | " Plug 'vim-airline/vim-airline-themes' | " airline themes to match any light and dark terminal using :AirlineTheme |
207 | let g:airline#themes#base16#constant = 0 | | 207 | " let base16colorspace=256 | |
208 | " let g:solarized_base16 = 1 | 208 | " let g:airline_theme='base16' | " specifies which colorscheme should airline uses |
209 | " let g:airline_base16_improved_contrast = 1 | 209 | " let g:airline#themes#base16#constant = 0 | |
210 | " let g:airline_theme='badcat' | " specifies which colorscheme should airline uses | 210 | " " let g:solarized_base16 = 1 |
211 | " let g:airline_theme='papercolor' | " specifies which colorscheme should ionirline uses | 211 | " " let g:airline_base16_improved_contrast = 1 |
212 | " " let g:airline_theme='badcat' | " specifies which colorscheme should airline uses | ||
213 | " " let g:airline_theme='papercolor' | " specifies which colorscheme should ionirline uses | ||
212 | 214 | ||
213 | " Autocompleter: ===================================== | 215 | " Autocompleter: ===================================== |
214 | if has("python") | 216 | if has("python") |
@@ -593,7 +595,7 @@ if has("autocmd") | |||
593 | " autocmd BufEnter * @f | 595 | " autocmd BufEnter * @f |
594 | augroup END | 596 | augroup END |
595 | 597 | ||
596 | autocmd VimEnter * set nobuflisted | 598 | " autocmd VimEnter * set nobuflisted |
597 | endif | 599 | endif |
598 | 600 | ||
599 | 601 | ||
@@ -659,6 +661,7 @@ let g:netrw_winsize = 20 | " window size in percent | |||
659 | 661 | ||
660 | 662 | ||
661 | highlight WordBold cterm=bold gui=bold | 663 | highlight WordBold cterm=bold gui=bold |
664 | let w:m1 = 0 | ||
662 | function! HighlightWordUnderCursor() | 665 | function! HighlightWordUnderCursor() |
663 | if(exists('w:m1') && w:m1 > 0) | 666 | if(exists('w:m1') && w:m1 > 0) |
664 | call matchdelete(w:m1) | 667 | call matchdelete(w:m1) |
@@ -670,6 +673,9 @@ function! HighlightWordUnderCursor() | |||
670 | endif | 673 | endif |
671 | endfunction | 674 | endfunction |
672 | autocmd! CursorHold,CursorHoldI * call HighlightWordUnderCursor() | 675 | autocmd! CursorHold,CursorHoldI * call HighlightWordUnderCursor() |
676 | if version >= 702 " clean up (see: http://vim.wikia.com/wiki/VimTip396) | ||
677 | autocmd BufWinLeave * call clearmatches() | ||
678 | endif | ||
673 | 679 | ||
674 | " au BufNewFile,BufRead,BufEnter *.cpp,*.hpp set omnifunc=omni#cpp#complete#Main | 680 | " au BufNewFile,BufRead,BufEnter *.cpp,*.hpp set omnifunc=omni#cpp#complete#Main |
675 | " Enable omni completion. | 681 | " Enable omni completion. |