diff options
author | Max Christian Pohle | 2017-05-31 17:56:50 +0200 |
---|---|---|
committer | Max Christian Pohle | 2017-05-31 17:56:50 +0200 |
commit | 5ced76f09ddd3ebc3abe5203d95e36f8f41050d4 (patch) | |
tree | daa81ca3a332e74c4515ee03f7923ba2320494c6 | |
parent | e150895bcecd8895157ab702eddef8adc69b6bfb (diff) | |
download | vim-karlmarks-5ced76f09ddd3ebc3abe5203d95e36f8f41050d4.tar.bz2 vim-karlmarks-5ced76f09ddd3ebc3abe5203d95e36f8f41050d4.zip |
Improved code folding
-rw-r--r-- | vimrc-full | 13 |
1 files changed, 7 insertions, 6 deletions
@@ -41,7 +41,7 @@ set noequalalways | " do not evenly size windows when opening new or | |||
41 | set foldmethod=syntax | " foldlevel: syntax, indent, manual | 41 | set foldmethod=syntax | " foldlevel: syntax, indent, manual |
42 | set foldcolumn=1 | " if code folding gets used display it in the clutter bar, where line numbers live | 42 | set foldcolumn=1 | " if code folding gets used display it in the clutter bar, where line numbers live |
43 | set foldclose=all | " automatically fold, when the cursor leaves the folded area | 43 | set foldclose=all | " automatically fold, when the cursor leaves the folded area |
44 | set foldopen=all | " unfold when cursor moves into the closed fold | 44 | set foldopen=block,hor,search | " when do we unfold? |
45 | set foldtext=Foldtext() | " | 45 | set foldtext=Foldtext() | " |
46 | set foldnestmax=1 | " top level folding only | 46 | set foldnestmax=1 | " top level folding only |
47 | set relativenumber | " relative line numbers can speed up navigation | 47 | set relativenumber | " relative line numbers can speed up navigation |
@@ -152,10 +152,10 @@ let g:javascript_conceal_super = "Ω" | |||
152 | let g:javascript_conceal_arrow_function = "⇒" | 152 | let g:javascript_conceal_arrow_function = "⇒" |
153 | 153 | ||
154 | Plug 'majutsushi/tagbar' " superseeds taglist-plus, which isn't maintained any more | 154 | Plug 'majutsushi/tagbar' " superseeds taglist-plus, which isn't maintained any more |
155 | let g:tagbar_autoclose = 1 | 155 | let g:tagbar_autoclose = 0 |
156 | let g:tagbar_autofocus = 1 | 156 | let g:tagbar_autofocus = 1 |
157 | let g:tagbar_autoshowtag = 1 | 157 | let g:tagbar_autoshowtag = 1 |
158 | let g:tagbar_compact = 0 | 158 | let g:tagbar_compact = 1 |
159 | let g:tagbar_indent = 0 | 159 | let g:tagbar_indent = 0 |
160 | let g:tagbar_foldlevel = 99 | 160 | let g:tagbar_foldlevel = 99 |
161 | nnoremap <leader>l :TagbarToggle<CR>| " bind TagBar to Hotkey Ctrl+L | 161 | nnoremap <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 |