aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMax Christian Pohle2017-05-31 17:56:50 +0200
committerMax Christian Pohle2017-05-31 17:56:50 +0200
commit5ced76f09ddd3ebc3abe5203d95e36f8f41050d4 (patch)
treedaa81ca3a332e74c4515ee03f7923ba2320494c6
parente150895bcecd8895157ab702eddef8adc69b6bfb (diff)
downloadvim-karlmarks-5ced76f09ddd3ebc3abe5203d95e36f8f41050d4.tar.bz2
vim-karlmarks-5ced76f09ddd3ebc3abe5203d95e36f8f41050d4.zip
Improved code folding
-rw-r--r--vimrc-full13
1 files changed, 7 insertions, 6 deletions
diff --git a/vimrc-full b/vimrc-full
index a052c86..5146456 100644
--- a/vimrc-full
+++ b/vimrc-full
@@ -41,7 +41,7 @@ set noequalalways | " do not evenly size windows when opening new or
41set foldmethod=syntax | " foldlevel: syntax, indent, manual 41set foldmethod=syntax | " foldlevel: syntax, indent, manual
42set foldcolumn=1 | " if code folding gets used display it in the clutter bar, where line numbers live 42set foldcolumn=1 | " if code folding gets used display it in the clutter bar, where line numbers live
43set foldclose=all | " automatically fold, when the cursor leaves the folded area 43set foldclose=all | " automatically fold, when the cursor leaves the folded area
44set foldopen=all | " unfold when cursor moves into the closed fold 44set foldopen=block,hor,search | " when do we unfold?
45set foldtext=Foldtext() | " 45set foldtext=Foldtext() | "
46set foldnestmax=1 | " top level folding only 46set foldnestmax=1 | " top level folding only
47set relativenumber | " relative line numbers can speed up navigation 47set relativenumber | " relative line numbers can speed up navigation
@@ -152,10 +152,10 @@ let g:javascript_conceal_super = "Ω"
152let g:javascript_conceal_arrow_function = "⇒" 152let g:javascript_conceal_arrow_function = "⇒"
153 153
154Plug 'majutsushi/tagbar' " superseeds taglist-plus, which isn't maintained any more 154Plug 'majutsushi/tagbar' " superseeds taglist-plus, which isn't maintained any more
155let g:tagbar_autoclose = 1 155let g:tagbar_autoclose = 0
156let g:tagbar_autofocus = 1 156let g:tagbar_autofocus = 1
157let g:tagbar_autoshowtag = 1 157let g:tagbar_autoshowtag = 1
158let g:tagbar_compact = 0 158let g:tagbar_compact = 1
159let g:tagbar_indent = 0 159let g:tagbar_indent = 0
160let g:tagbar_foldlevel = 99 160let g:tagbar_foldlevel = 99
161nnoremap <leader>l :TagbarToggle<CR>| " bind TagBar to Hotkey Ctrl+L 161nnoremap <leader>l :TagbarToggle<CR>| " bind TagBar to Hotkey Ctrl+L
@@ -219,7 +219,7 @@ if has("python")
219 let g:ycm_server_python_interpreter = "python3" 219 let g:ycm_server_python_interpreter = "python3"
220 let g:ycm_add_preview_to_completeopt = 1 " reuse existing preview window 220 let g:ycm_add_preview_to_completeopt = 1 " reuse existing preview window
221 let g:ycm_autoclose_preview_window_after_insertion = 1 221 let g:ycm_autoclose_preview_window_after_insertion = 1
222 let g:ycm_collect_identifiers_from_tags_files = 1 " Let YCM read tags from Ctags file 222 let g:ycm_collect_identifiers_from_tags_files = 0 " Let YCM read tags from Ctags file
223 let g:ycm_seed_identifiers_with_syntax = 1 " Completion for programming language's keyword 223 let g:ycm_seed_identifiers_with_syntax = 1 " Completion for programming language's keyword
224 let g:ycm_complete_in_comments = 1 " Completion in comments 224 let g:ycm_complete_in_comments = 1 " Completion in comments
225 let g:ycm_complete_in_strings = 1 " Completion in string 225 let g:ycm_complete_in_strings = 1 " Completion in string
@@ -252,7 +252,8 @@ if has("python")
252 let g:syntastic_check_on_wq = 0 252 let g:syntastic_check_on_wq = 0
253 " let g:syntastic_quiet_messages = {"type":"style"} 253 " let g:syntastic_quiet_messages = {"type":"style"}
254 " 254 "
255 let g:syntastic_python_flake8_args = '--max-complexity=10 --max-line-length=120 --exclude venv --doctests --exit-zero' 255 " E221: multiple spaces before Operator
256 let g:syntastic_python_flake8_args = '--max-complexity=10 --max-line-length=120 --exclude venv --doctests --exit-zero --ignore=E221'
256 " filter ( = do not display) style/formatting errors and warnings 257 " filter ( = do not display) style/formatting errors and warnings
257 let g:syntastic_error_symbol = '✖' 258 let g:syntastic_error_symbol = '✖'
258 let g:syntastic_style_error_symbol = '✗' 259 let g:syntastic_style_error_symbol = '✗'
@@ -380,7 +381,7 @@ if has("multi_byte")
380 set encoding=utf-8 | " we need default utf-8 encoding to use cool chars as line break and so on (see below) 381 set encoding=utf-8 | " we need default utf-8 encoding to use cool chars as line break and so on (see below)
381 set termencoding=&encoding | " once we use special chars we assume everybody uses a terminal supporting those 382 set termencoding=&encoding | " once we use special chars we assume everybody uses a terminal supporting those
382 383
383 set fillchars+=fold:\ | " 384 set fillchars+=fold:\ | "
384 set fillchars+=vert:\│ | " cool vertical split char 385 set fillchars+=vert:\│ | " cool vertical split char
385 386
386 set listchars= | " initialize empty listchars 387 set listchars= | " initialize empty listchars
..