aboutsummaryrefslogtreecommitdiff
path: root/vimrc-full
diff options
context:
space:
mode:
authorMax Christian Pohle2017-05-09 07:45:11 +0200
committerMax Christian Pohle2017-05-09 07:45:11 +0200
commitdc7d0ba5467d9b1e43c4c56e3c499db7806d7cdb (patch)
tree919828650725850efa21b9ad654ab00992cfa289 /vimrc-full
parentbfe2f636a6d53e8d0371550acb4666a6e243d40c (diff)
downloadvim-dc7d0ba5467d9b1e43c4c56e3c499db7806d7cdb.tar.bz2
vim-dc7d0ba5467d9b1e43c4c56e3c499db7806d7cdb.zip
Further performance improvement
Diffstat (limited to 'vimrc-full')
-rw-r--r--vimrc-full76
1 files changed, 37 insertions, 39 deletions
diff --git a/vimrc-full b/vimrc-full
index ac98f11..5b7327a 100644
--- a/vimrc-full
+++ b/vimrc-full
@@ -14,9 +14,8 @@ call plug#begin()
14 14
15Plug 'tpope/vim-surround' | " plugin makes cs"' inside a line replace " with ' 15Plug 'tpope/vim-surround' | " plugin makes cs"' inside a line replace " with '
16Plug 'tpope/vim-fugitive' | " the most complete GIT integration plugin 16Plug 'tpope/vim-fugitive' | " the most complete GIT integration plugin
17Plug 'godlygeek/tabular' | " align code on a sign, like :Tab/=
18Plug 'ryanoasis/vim-devicons' | " eye candy icons
19Plug 'mhinz/vim-signify' | " uses the sign column to indicate added, modified and removed lines 17Plug 'mhinz/vim-signify' | " uses the sign column to indicate added, modified and removed lines
18Plug '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:
28Plug 'chriskempson/base16-vim' | " not just one high quality color scheme (all named base16-*) 27Plug 'chriskempson/base16-vim' | " not just one high quality color scheme (all named base16-*)
28Plug 'ryanoasis/vim-devicons' | " eye candy icons
29 29
30" SCRATCH: | " Unobtrusive scratch window 30" SCRATCH: | " Unobtrusive scratch window
31Plug 'mtth/scratch.vim' 31Plug 'mtth/scratch.vim'
@@ -39,41 +39,6 @@ Plug 'jlanzarotta/bufexplorer'
39nnoremap <F12> :ToggleBufExplorer<CR> 39nnoremap <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 =========================================================================================
43Plug 'vim-airline/vim-airline' | " beautification of the mode line
44set laststatus=2 | " required by AirLine, without status line does not appear until a window split
45set background=light
46let g:airline_extensions = ['tabline', 'branch', 'syntastic', 'tagbar', 'whitespace']
47let b:airline_whitespace_checks = ['indent', 'trailing', 'long', 'mixed-indent-file']
48" let g:airline_section_c = "" | " was: %F
49let g:airline#extensions#tagbar#flags = 'f' | " even though the airline extension is off this controls :h tagbar-extend
50let g:airline#extensions#tabline#left_sep = ' '
51let g:airline#extensions#tabline#left_alt_sep = ' | '
52let g:airline#extensions#tabline#fnamemod = ':t:.' | " let airline just show the filename without its path
53let g:airline#extensions#tabline#disable_refresh = 1 |
54let g:airline#extensions#tabline#enabled = 1 |
55let g:airline#extensions#tabline#show_buffers = 1 |
56let g:airline#extensions#tabline#show_tabs = 0 |
57let g:airline#extensions#tagbar#enabled = 0 |
58let g:airline#extensions#whitespace#enabled = 1 |
59let g:airline#extensions#wordcount#enabled = 0 |
60let g:airline_detect_modified = 1 |
61let g:airline_detect_paste = 0 |
62let g:airline_exclude_preview = 1 |
63let g:airline_inactive_collapse = 1 |
64let g:airline_powerline_fonts = 1 |
65let g:airline_skip_empty_sections = 1 |
66" AIRLINE_Theme:
67Plug 'vim-airline/vim-airline-themes' | " airline themes to match any light and dark terminal using :AirlineTheme
68let base16colorspace=256
69let g:airline_theme='base16' | " specifies which colorscheme should airline uses
70" let g:solarized_base16 = 1
71" let g:airline_base16_improved_contrast = 1
72let 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
78Plug 'scrooloose/nerdtree' | " 43Plug 'scrooloose/nerdtree' | "
79let NERDTreeCascadeSingleChildDir = 0 | " I don't get how one can use <m> to create files in that included directory 44let 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: ========================================.
103Plug 'sheerun/vim-polyglot' " better syntax highlighting/indentation for multiple languages 67Plug 'sheerun/vim-polyglot' " better syntax highlighting/indentation for multiple languages
104let g:javascript_conceal_function = "ƒ" 68let g:javascript_conceal_function = "ƒ"
@@ -123,6 +87,40 @@ nnoremap <leader>l :TagbarToggle<CR>| " bind TagBar to Hotkey Ct
123nnoremap <F9> :TagbarToggle<CR>| " bind TagBar to Hotkey Ctrl+L 87nnoremap <F9> :TagbarToggle<CR>| " bind TagBar to Hotkey Ctrl+L
124 88
125 89
90" AIRLINE: a fancy status line =========================================================================================
91Plug 'vim-airline/vim-airline' | " beautification of the mode line
92set laststatus=2 | " required by AirLine, without status line does not appear until a window split
93set background=light
94let g:airline_extensions = ['tabline', 'branch', 'syntastic', 'whitespace']
95let b:airline_whitespace_checks = ['indent', 'trailing', 'long', 'mixed-indent-file']
96" let g:airline_section_c = "" | " was: %F
97let g:airline#extensions#tagbar#flags = 'f' | " even though the airline extension is off this controls :h tagbar-extend
98let g:airline#extensions#tabline#left_sep = ' '
99let g:airline#extensions#tabline#left_alt_sep = ' | '
100let g:airline#extensions#tabline#fnamemod = ':t:.' | " let airline just show the filename without its path
101let g:airline#extensions#tabline#disable_refresh = 1 |
102let g:airline#extensions#tabline#enabled = 1 |
103let g:airline#extensions#tabline#show_buffers = 1 |
104let g:airline#extensions#tabline#show_tabs = 0 |
105let g:airline#extensions#tagbar#enabled = 0 |
106let g:airline#extensions#whitespace#enabled = 1 |
107let g:airline#extensions#wordcount#enabled = 0 |
108let g:airline_detect_modified = 1 |
109let g:airline_detect_paste = 0 |
110let g:airline_exclude_preview = 1 |
111let g:airline_inactive_collapse = 1 |
112let g:airline_powerline_fonts = 1 |
113let g:airline_skip_empty_sections = 1 |
114" AIRLINE_Theme:
115Plug 'vim-airline/vim-airline-themes' | " airline themes to match any light and dark terminal using :AirlineTheme
116let base16colorspace=256
117let g:airline_theme='base16' | " specifies which colorscheme should airline uses
118" let g:solarized_base16 = 1
119" let g:airline_base16_improved_contrast = 1
120let 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/...
142Plug 'Valloric/YouCompleteMe', { 'on': [] } 140Plug 'Valloric/YouCompleteMe', {'on': []}
143let g:ycm_add_preview_to_completeopt = 1 " reuse existing preview window 141let g:ycm_add_preview_to_completeopt = 1 " reuse existing preview window
144let g:ycm_autoclose_preview_window_after_insertion = 1 142let g:ycm_autoclose_preview_window_after_insertion = 1
145let g:ycm_collect_identifiers_from_tags_files = 1 " Let YCM read tags from Ctags file 143let g:ycm_collect_identifiers_from_tags_files = 1 " Let YCM read tags from Ctags file
..