From e150895bcecd8895157ab702eddef8adc69b6bfb Mon Sep 17 00:00:00 2001 From: Max Christian Pohle Date: Wed, 31 May 2017 11:21:30 +0200 Subject: Improved speed and code checking Deactivated other VCS in vim-signify --- vimrc-full | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/vimrc-full b/vimrc-full index 0521473..a052c86 100644 --- a/vimrc-full +++ b/vimrc-full @@ -81,8 +81,13 @@ call plug#begin() Plug 'tpope/vim-surround' | " plugin makes cs"' inside a line replace " with ' Plug 'tpope/vim-fugitive' | " the most complete GIT integration plugin -Plug 'mhinz/vim-signify' | " uses the sign column to indicate added, modified and removed lines Plug 'godlygeek/tabular' | " align code on a sign, like :Tab/= +Plug 'mhinz/vim-signify' | " uses the sign column to indicate added, modified and removed lines +let g:signify_vcs_list = [ 'git' ] | " use signify only with git (improves speed when loading buffers, see :h signify) +let g:signify_cursorhold_insert = 1 +let g:signify_cursorhold_normal = 1 +let g:signify_update_on_bufenter = 0 +let g:signify_update_on_focusgained = 1 " TESTING: | " plugins which I am currently trying... Plug 'rkitover/vimpager' @@ -98,13 +103,14 @@ Plug 'mtth/scratch.vim' nnoremap :ScratchPreview " VIM_ROOTER: | " Unobtrusive scratch window +" autocmd BufEnter * lcd %:p:h | " Plugin vim-rooter get used instead (which is much more sane as well) Plug 'airblade/vim-rooter' | " makes :lcd changes to projects (git-)root (code-completion, gf, grep, find) let g:rooter_targets="/,*.c,*.h" | " only use rooter for C, not LaTeX or anything else +" Vim rooter can be replaced by :Gcd provided by fugitive :) " BUFEXPLORER: | " a buffer to list all buffers has the advantage, that default /-searches work in there Plug 'jlanzarotta/bufexplorer' nnoremap :ToggleBufExplorer -" autocmd BufEnter * lcd %:p:h | " Plugin vim-rooter get used instead (which is much more sane as well) " NERDTree: replaces NetRW, as long as it has so many bugs Plug 'scrooloose/nerdtree' | " @@ -244,7 +250,9 @@ if has("python") let g:syntastic_auto_loc_list = 0 let g:syntastic_check_on_open = 1 let g:syntastic_check_on_wq = 0 - let g:syntastic_quiet_messages = {"type":"style"} + " 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' " filter ( = do not display) style/formatting errors and warnings let g:syntastic_error_symbol = '✖' let g:syntastic_style_error_symbol = '✗' @@ -573,6 +581,8 @@ if has("autocmd") " change to the current working directory (p like pwd) let @p = ":lcd %:p:h" + let @l = ":let g:signify_vcs_cmds={'git': 'git diff --no-color --no-ext-diff -U0 HEAD^ -- %f'}|:SignifyRefresh" + " exec current line as a command, insert output of command (from: https://youtu.be/MquaityA1SM?t=35m45s) nnoremap Q !!$SHELL -- cgit v1.2.3