From 5ced76f09ddd3ebc3abe5203d95e36f8f41050d4 Mon Sep 17 00:00:00 2001 From: Max Christian Pohle Date: Wed, 31 May 2017 17:56:50 +0200 Subject: Improved code folding --- vimrc-full | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) (limited to 'vimrc-full') 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 set foldmethod=syntax | " foldlevel: syntax, indent, manual set foldcolumn=1 | " if code folding gets used display it in the clutter bar, where line numbers live set foldclose=all | " automatically fold, when the cursor leaves the folded area -set foldopen=all | " unfold when cursor moves into the closed fold +set foldopen=block,hor,search | " when do we unfold? set foldtext=Foldtext() | " set foldnestmax=1 | " top level folding only set relativenumber | " relative line numbers can speed up navigation @@ -152,10 +152,10 @@ let g:javascript_conceal_super = "Ω" let g:javascript_conceal_arrow_function = "⇒" Plug 'majutsushi/tagbar' " superseeds taglist-plus, which isn't maintained any more -let g:tagbar_autoclose = 1 +let g:tagbar_autoclose = 0 let g:tagbar_autofocus = 1 let g:tagbar_autoshowtag = 1 -let g:tagbar_compact = 0 +let g:tagbar_compact = 1 let g:tagbar_indent = 0 let g:tagbar_foldlevel = 99 nnoremap l :TagbarToggle| " bind TagBar to Hotkey Ctrl+L @@ -219,7 +219,7 @@ if has("python") let g:ycm_server_python_interpreter = "python3" let g:ycm_add_preview_to_completeopt = 1 " reuse existing preview window let g:ycm_autoclose_preview_window_after_insertion = 1 - let g:ycm_collect_identifiers_from_tags_files = 1 " Let YCM read tags from Ctags file + let g:ycm_collect_identifiers_from_tags_files = 0 " Let YCM read tags from Ctags file let g:ycm_seed_identifiers_with_syntax = 1 " Completion for programming language's keyword let g:ycm_complete_in_comments = 1 " Completion in comments let g:ycm_complete_in_strings = 1 " Completion in string @@ -252,7 +252,8 @@ if has("python") let g:syntastic_check_on_wq = 0 " let g:syntastic_quiet_messages = {"type":"style"} " - let g:syntastic_python_flake8_args = '--max-complexity=10 --max-line-length=120 --exclude venv --doctests --exit-zero' + " E221: multiple spaces before Operator + let g:syntastic_python_flake8_args = '--max-complexity=10 --max-line-length=120 --exclude venv --doctests --exit-zero --ignore=E221' " filter ( = do not display) style/formatting errors and warnings let g:syntastic_error_symbol = '✖' let g:syntastic_style_error_symbol = '✗' @@ -380,7 +381,7 @@ if has("multi_byte") set encoding=utf-8 | " we need default utf-8 encoding to use cool chars as line break and so on (see below) set termencoding=&encoding | " once we use special chars we assume everybody uses a terminal supporting those - set fillchars+=fold:\ | " + set fillchars+=fold:\— | " set fillchars+=vert:\│ | " cool vertical split char set listchars= | " initialize empty listchars -- cgit v1.2.3