diff options
Diffstat (limited to 'vimrc-full')
-rw-r--r-- | vimrc-full | 76 |
1 files changed, 37 insertions, 39 deletions
@@ -14,9 +14,8 @@ call plug#begin() | |||
14 | 14 | ||
15 | Plug 'tpope/vim-surround' | " plugin makes cs"' inside a line replace " with ' | 15 | Plug 'tpope/vim-surround' | " plugin makes cs"' inside a line replace " with ' |
16 | Plug 'tpope/vim-fugitive' | " the most complete GIT integration plugin | 16 | Plug 'tpope/vim-fugitive' | " the most complete GIT integration plugin |
17 | Plug 'godlygeek/tabular' | " align code on a sign, like :Tab/= | ||
18 | Plug 'ryanoasis/vim-devicons' | " eye candy icons | ||
19 | Plug 'mhinz/vim-signify' | " uses the sign column to indicate added, modified and removed lines | 17 | Plug 'mhinz/vim-signify' | " uses the sign column to indicate added, modified and removed lines |
18 | Plug 'godlygeek/tabular' | " align code on a sign, like :Tab/= | ||
20 | 19 | ||
21 | " TESTING: | " plugins which I am currently trying... | 20 | " TESTING: | " plugins which I am currently trying... |
22 | " Plug 'rkitover/vimpager' | 21 | " Plug 'rkitover/vimpager' |
@@ -26,6 +25,7 @@ Plug 'mhinz/vim-signify' | " uses the sign column to indicate added | |||
26 | 25 | ||
27 | " Colorschemes: | 26 | " Colorschemes: |
28 | Plug 'chriskempson/base16-vim' | " not just one high quality color scheme (all named base16-*) | 27 | Plug 'chriskempson/base16-vim' | " not just one high quality color scheme (all named base16-*) |
28 | Plug 'ryanoasis/vim-devicons' | " eye candy icons | ||
29 | 29 | ||
30 | " SCRATCH: | " Unobtrusive scratch window | 30 | " SCRATCH: | " Unobtrusive scratch window |
31 | Plug 'mtth/scratch.vim' | 31 | Plug 'mtth/scratch.vim' |
@@ -39,41 +39,6 @@ Plug 'jlanzarotta/bufexplorer' | |||
39 | nnoremap <F12> :ToggleBufExplorer<CR> | 39 | nnoremap <F12> :ToggleBufExplorer<CR> |
40 | " autocmd BufEnter * lcd %:p:h | " Plugin vim-rooter get used instead (which is much more sane as well) | 40 | " autocmd BufEnter * lcd %:p:h | " Plugin vim-rooter get used instead (which is much more sane as well) |
41 | 41 | ||
42 | " AIRLINE: a fancy status line ========================================================================================= | ||
43 | Plug 'vim-airline/vim-airline' | " beautification of the mode line | ||
44 | set laststatus=2 | " required by AirLine, without status line does not appear until a window split | ||
45 | set background=light | ||
46 | let g:airline_extensions = ['tabline', 'branch', 'syntastic', 'tagbar', 'whitespace'] | ||
47 | let b:airline_whitespace_checks = ['indent', 'trailing', 'long', 'mixed-indent-file'] | ||
48 | " let g:airline_section_c = "" | " was: %F | ||
49 | let g:airline#extensions#tagbar#flags = 'f' | " even though the airline extension is off this controls :h tagbar-extend | ||
50 | let g:airline#extensions#tabline#left_sep = ' ' | ||
51 | let g:airline#extensions#tabline#left_alt_sep = ' | ' | ||
52 | let g:airline#extensions#tabline#fnamemod = ':t:.' | " let airline just show the filename without its path | ||
53 | let g:airline#extensions#tabline#disable_refresh = 1 | | ||
54 | let g:airline#extensions#tabline#enabled = 1 | | ||
55 | let g:airline#extensions#tabline#show_buffers = 1 | | ||
56 | let g:airline#extensions#tabline#show_tabs = 0 | | ||
57 | let g:airline#extensions#tagbar#enabled = 0 | | ||
58 | let g:airline#extensions#whitespace#enabled = 1 | | ||
59 | let g:airline#extensions#wordcount#enabled = 0 | | ||
60 | let g:airline_detect_modified = 1 | | ||
61 | let g:airline_detect_paste = 0 | | ||
62 | let g:airline_exclude_preview = 1 | | ||
63 | let g:airline_inactive_collapse = 1 | | ||
64 | let g:airline_powerline_fonts = 1 | | ||
65 | let g:airline_skip_empty_sections = 1 | | ||
66 | " AIRLINE_Theme: | ||
67 | Plug 'vim-airline/vim-airline-themes' | " airline themes to match any light and dark terminal using :AirlineTheme | ||
68 | let base16colorspace=256 | ||
69 | let g:airline_theme='base16' | " specifies which colorscheme should airline uses | ||
70 | " let g:solarized_base16 = 1 | ||
71 | " let g:airline_base16_improved_contrast = 1 | ||
72 | let g:airline#themes#base16#constant = 0 | ||
73 | " let g:airline_theme='badcat' | " specifies which colorscheme should airline uses | ||
74 | " let g:airline_theme='papercolor' | " specifies which colorscheme should ionirline uses | ||
75 | |||
76 | |||
77 | " NERDTree: replaces NetRW, as long as it has so many bugs | 42 | " NERDTree: replaces NetRW, as long as it has so many bugs |
78 | Plug 'scrooloose/nerdtree' | " | 43 | Plug 'scrooloose/nerdtree' | " |
79 | let NERDTreeCascadeSingleChildDir = 0 | " I don't get how one can use <m> to create files in that included directory | 44 | let NERDTreeCascadeSingleChildDir = 0 | " I don't get how one can use <m> to create files in that included directory |
@@ -98,7 +63,6 @@ nnoremap <expr> | |||
98 | " \ if (winnr("$") == 1 && exists("b:NERDTree") && b:NERDTree.isTabTree()) | q | endif | 63 | " \ if (winnr("$") == 1 && exists("b:NERDTree") && b:NERDTree.isTabTree()) | q | endif |
99 | " | 64 | " |
100 | 65 | ||
101 | |||
102 | " Additional: ========================================. | 66 | " Additional: ========================================. |
103 | Plug 'sheerun/vim-polyglot' " better syntax highlighting/indentation for multiple languages | 67 | Plug 'sheerun/vim-polyglot' " better syntax highlighting/indentation for multiple languages |
104 | let g:javascript_conceal_function = "ƒ" | 68 | let g:javascript_conceal_function = "ƒ" |
@@ -123,6 +87,40 @@ nnoremap <leader>l :TagbarToggle<CR>| " bind TagBar to Hotkey Ct | |||
123 | nnoremap <F9> :TagbarToggle<CR>| " bind TagBar to Hotkey Ctrl+L | 87 | nnoremap <F9> :TagbarToggle<CR>| " bind TagBar to Hotkey Ctrl+L |
124 | 88 | ||
125 | 89 | ||
90 | " AIRLINE: a fancy status line ========================================================================================= | ||
91 | Plug 'vim-airline/vim-airline' | " beautification of the mode line | ||
92 | set laststatus=2 | " required by AirLine, without status line does not appear until a window split | ||
93 | set background=light | ||
94 | let g:airline_extensions = ['tabline', 'branch', 'syntastic', 'whitespace'] | ||
95 | let b:airline_whitespace_checks = ['indent', 'trailing', 'long', 'mixed-indent-file'] | ||
96 | " let g:airline_section_c = "" | " was: %F | ||
97 | let g:airline#extensions#tagbar#flags = 'f' | " even though the airline extension is off this controls :h tagbar-extend | ||
98 | let g:airline#extensions#tabline#left_sep = ' ' | ||
99 | let g:airline#extensions#tabline#left_alt_sep = ' | ' | ||
100 | let g:airline#extensions#tabline#fnamemod = ':t:.' | " let airline just show the filename without its path | ||
101 | let g:airline#extensions#tabline#disable_refresh = 1 | | ||
102 | let g:airline#extensions#tabline#enabled = 1 | | ||
103 | let g:airline#extensions#tabline#show_buffers = 1 | | ||
104 | let g:airline#extensions#tabline#show_tabs = 0 | | ||
105 | let g:airline#extensions#tagbar#enabled = 0 | | ||
106 | let g:airline#extensions#whitespace#enabled = 1 | | ||
107 | let g:airline#extensions#wordcount#enabled = 0 | | ||
108 | let g:airline_detect_modified = 1 | | ||
109 | let g:airline_detect_paste = 0 | | ||
110 | let g:airline_exclude_preview = 1 | | ||
111 | let g:airline_inactive_collapse = 1 | | ||
112 | let g:airline_powerline_fonts = 1 | | ||
113 | let g:airline_skip_empty_sections = 1 | | ||
114 | " AIRLINE_Theme: | ||
115 | Plug 'vim-airline/vim-airline-themes' | " airline themes to match any light and dark terminal using :AirlineTheme | ||
116 | let base16colorspace=256 | ||
117 | let g:airline_theme='base16' | " specifies which colorscheme should airline uses | ||
118 | " let g:solarized_base16 = 1 | ||
119 | " let g:airline_base16_improved_contrast = 1 | ||
120 | let g:airline#themes#base16#constant = 0 | ||
121 | " let g:airline_theme='badcat' | " specifies which colorscheme should airline uses | ||
122 | " let g:airline_theme='papercolor' | " specifies which colorscheme should ionirline uses | ||
123 | |||
126 | " Autocompleter: =====================================. | 124 | " Autocompleter: =====================================. |
127 | " | 125 | " |
128 | " ULTISNIPS: code snippet ============================================================================================== | 126 | " ULTISNIPS: code snippet ============================================================================================== |
@@ -139,7 +137,7 @@ Plug 'SirVer/ultisnips', {'on': []} " replaces loremipsum (and many m | |||
139 | " | 137 | " |
140 | " YouCompleteMe: ====================================================================================================== | 138 | " YouCompleteMe: ====================================================================================================== |
141 | " Plug 'Valloric/MatchTagAlways' " highlights the closing tag/brace/... | 139 | " Plug 'Valloric/MatchTagAlways' " highlights the closing tag/brace/... |
142 | Plug 'Valloric/YouCompleteMe', { 'on': [] } | 140 | Plug 'Valloric/YouCompleteMe', {'on': []} |
143 | let g:ycm_add_preview_to_completeopt = 1 " reuse existing preview window | 141 | let g:ycm_add_preview_to_completeopt = 1 " reuse existing preview window |
144 | let g:ycm_autoclose_preview_window_after_insertion = 1 | 142 | let g:ycm_autoclose_preview_window_after_insertion = 1 |
145 | let g:ycm_collect_identifiers_from_tags_files = 1 " Let YCM read tags from Ctags file | 143 | let g:ycm_collect_identifiers_from_tags_files = 1 " Let YCM read tags from Ctags file |