diff options
| -rw-r--r-- | vimrc | 64 |
1 files changed, 31 insertions, 33 deletions
| @@ -15,6 +15,34 @@ Plug 'godlygeek/tabular' | " align code on a sign, | |||
| 15 | Plug 'mhinz/vim-signify' | " show changes in the clutter bar | 15 | Plug 'mhinz/vim-signify' | " show changes in the clutter bar |
| 16 | 16 | ||
| 17 | 17 | ||
| 18 | " AIRLINE: ===========================================. | ||
| 19 | Plug 'vim-airline/vim-airline' | " beautification of the mode line | ||
| 20 | set laststatus=2 | " required by AirLine, without status line does not appear until a window split | ||
| 21 | let g:airline_detect_modified = 0 | | ||
| 22 | let g:airline_detect_paste = 0 | | ||
| 23 | let g:airline_exclude_preview = 1 | | ||
| 24 | let g:airline_extensions = ['tabline', 'branch', 'syntastic', 'tagbar'] | ||
| 25 | let g:airline#extensions#tabline#disable_refresh = 1 | | ||
| 26 | let g:airline#extensions#tabline#enabled = 1 | | ||
| 27 | let g:airline#extensions#tabline#fnamemod = ':t:.' | " let airline just show the filename without its path | ||
| 28 | let g:airline#extensions#tabline#show_buffers = 1 | | ||
| 29 | let g:airline#extensions#tabline#show_tabs = 0 | | ||
| 30 | let g:airline#extensions#tagbar#enabled = 0 | | ||
| 31 | let g:airline#extensions#tagbar#flags = 's' | ||
| 32 | let g:airline#extensions#whitespace#enabled = 0 | | ||
| 33 | let g:airline#extensions#wordcount#enabled = 0 | | ||
| 34 | let g:airline_inactive_collapse = 1 | | ||
| 35 | let g:airline_powerline_fonts = 1 | | ||
| 36 | let g:airline_section_c = '%F' | ||
| 37 | |||
| 38 | |||
| 39 | " AIRLINE_Theme: =====================================. | ||
| 40 | Plug 'vim-airline/vim-airline-themes' | " airline themes to match any light and dark terminal using :AirlineTheme | ||
| 41 | let g:airline_theme='base16' | " specifies which colorscheme should airline uses | ||
| 42 | " let g:airline_theme='badcat' | " specifies which colorscheme should airline uses | ||
| 43 | " let g:airline_theme='papercolor' | " specifies which colorscheme should airline uses | ||
| 44 | |||
| 45 | |||
| 18 | " Colorschemes: ======================================. | 46 | " Colorschemes: ======================================. |
| 19 | Plug 'ryanoasis/vim-devicons' | " eye candy icons | 47 | Plug 'ryanoasis/vim-devicons' | " eye candy icons |
| 20 | Plug 'chriskempson/base16-vim' | " | 48 | Plug 'chriskempson/base16-vim' | " |
| @@ -58,34 +86,6 @@ nnoremap <expr> | |||
| 58 | nnoremap Q !!$SHELL<CR> | 86 | nnoremap Q !!$SHELL<CR> |
| 59 | 87 | ||
| 60 | 88 | ||
| 61 | " AIRLINE: ===========================================. | ||
| 62 | Plug 'vim-airline/vim-airline' | " beautification of the mode line | ||
| 63 | set laststatus=2 | " required by AirLine, without status line does not appear until a window split | ||
| 64 | let g:airline_detect_modified = 0 | | ||
| 65 | let g:airline_detect_paste = 0 | | ||
| 66 | let g:airline_exclude_preview = 1 | | ||
| 67 | let g:airline_extensions = ['tabline', 'branch', 'syntastic', 'tagbar'] | ||
| 68 | let g:airline#extensions#tabline#disable_refresh = 1 | | ||
| 69 | let g:airline#extensions#tabline#enabled = 1 | | ||
| 70 | let g:airline#extensions#tabline#fnamemod = ':t:.' | " let airline just show the filename without its path | ||
| 71 | let g:airline#extensions#tabline#show_buffers = 1 | | ||
| 72 | let g:airline#extensions#tabline#show_tabs = 0 | | ||
| 73 | let g:airline#extensions#tagbar#enabled = 0 | | ||
| 74 | let g:airline#extensions#tagbar#flags = 's' | ||
| 75 | let g:airline#extensions#whitespace#enabled = 0 | | ||
| 76 | let g:airline#extensions#wordcount#enabled = 0 | | ||
| 77 | let g:airline_inactive_collapse = 1 | | ||
| 78 | let g:airline_powerline_fonts = 1 | | ||
| 79 | let g:airline_section_c = '%F' | ||
| 80 | |||
| 81 | |||
| 82 | " AIRLINE_Theme: =====================================. | ||
| 83 | Plug 'vim-airline/vim-airline-themes' | " airline themes to match any light and dark terminal using :AirlineTheme | ||
| 84 | let g:airline_theme='base16' | " specifies which colorscheme should airline uses | ||
| 85 | " let g:airline_theme='badcat' | " specifies which colorscheme should airline uses | ||
| 86 | " let g:airline_theme='papercolor' | " specifies which colorscheme should airline uses | ||
| 87 | |||
| 88 | |||
| 89 | " Additional: ========================================. | 89 | " Additional: ========================================. |
| 90 | Plug 'sheerun/vim-polyglot' " better syntax highlighting/indentation for multiple languages | 90 | Plug 'sheerun/vim-polyglot' " better syntax highlighting/indentation for multiple languages |
| 91 | let g:javascript_conceal_function = "ƒ" | 91 | let g:javascript_conceal_function = "ƒ" |
| @@ -109,8 +109,6 @@ let g:tagbar_foldlevel = 99 | |||
| 109 | nnoremap <leader>l :TagbarToggle<CR>| " bind TagBar to Hotkey Ctrl+L | 109 | nnoremap <leader>l :TagbarToggle<CR>| " bind TagBar to Hotkey Ctrl+L |
| 110 | 110 | ||
| 111 | 111 | ||
| 112 | |||
| 113 | |||
| 114 | " Autocompleter: =====================================. | 112 | " Autocompleter: =====================================. |
| 115 | Plug 'Valloric/MatchTagAlways' " highlights the closing tag/brace/... | 113 | Plug 'Valloric/MatchTagAlways' " highlights the closing tag/brace/... |
| 116 | Plug 'Valloric/YouCompleteMe' | 114 | Plug 'Valloric/YouCompleteMe' |
| @@ -279,11 +277,8 @@ set showcmd | " essential: show keys of combined commands in t | |||
| 279 | set thesaurus+=/home/max/.vim/thesaurus/php.txt | 277 | set thesaurus+=/home/max/.vim/thesaurus/php.txt |
| 280 | set ts=2 sts=2 sw=2 expandtab | " indentation which i like (abbr: tabstop, softtabstop, shiftwidth) | 278 | set ts=2 sts=2 sw=2 expandtab | " indentation which i like (abbr: tabstop, softtabstop, shiftwidth) |
| 281 | set ttimeoutlen=10 | " set esc key timeout in ms- | 279 | set ttimeoutlen=10 | " set esc key timeout in ms- |
| 282 | " set ttyfast | " improves speed for terminal vim (incomp. with nvim) | ||
| 283 | set updatetime=1000 | " updates the screen more often | 280 | set updatetime=1000 | " updates the screen more often |
| 284 | " set ttyscroll=100 | " improves speed for terminal vim, incomp. with nvim | ||
| 285 | set writedelay=0 | 281 | set writedelay=0 |
| 286 | " set termguicolors | " When on, uses highlight-guifg and highlight-guibg attributes in the terminal (=24bit color) incomp. with nvim | ||
| 287 | 282 | ||
| 288 | if has("multi_byte") | 283 | if has("multi_byte") |
| 289 | scriptencoding utf-8 | " tell vim that we are using utf-8 here | 284 | scriptencoding utf-8 | " tell vim that we are using utf-8 here |
| @@ -431,6 +426,9 @@ endif | |||
| 431 | 426 | ||
| 432 | if !has('nvim') | 427 | if !has('nvim') |
| 433 | set ttymouse=xterm2 | 428 | set ttymouse=xterm2 |
| 429 | set ttyscroll=100 | " improves speed for terminal vim, incomp. with nvim | ||
| 430 | set ttyfast | " improves speed for terminal vim (incomp. with nvim) | ||
| 431 | set termguicolors | " When on, uses highlight-guifg and highlight-guibg attributes in the terminal (=24bit color) incomp. with nvim | ||
| 434 | else | 432 | else |
| 435 | " shortcut \t opens a terminal in a horizontal split | 433 | " shortcut \t opens a terminal in a horizontal split |
| 436 | nnoremap <leader>t :new +terminal<CR> | 434 | nnoremap <leader>t :new +terminal<CR> |
