aboutsummaryrefslogtreecommitdiff
path: root/vimrc-full
diff options
context:
space:
mode:
authorMax Christian Pohle2017-05-31 11:21:30 +0200
committerMax Christian Pohle2017-05-31 11:21:30 +0200
commite150895bcecd8895157ab702eddef8adc69b6bfb (patch)
tree08454514274a2d80c0d3848e8e62005ede5fe65f /vimrc-full
parent62d48a0daa800127f835d47b8ead3e68ae08b3a2 (diff)
downloadvim-e150895bcecd8895157ab702eddef8adc69b6bfb.tar.bz2
vim-e150895bcecd8895157ab702eddef8adc69b6bfb.zip
Improved speed and code checking
Deactivated other VCS in vim-signify
Diffstat (limited to 'vimrc-full')
-rw-r--r--vimrc-full16
1 files 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()
81 81
82Plug 'tpope/vim-surround' | " plugin makes cs"' inside a line replace " with ' 82Plug 'tpope/vim-surround' | " plugin makes cs"' inside a line replace " with '
83Plug 'tpope/vim-fugitive' | " the most complete GIT integration plugin 83Plug 'tpope/vim-fugitive' | " the most complete GIT integration plugin
84Plug 'mhinz/vim-signify' | " uses the sign column to indicate added, modified and removed lines
85Plug 'godlygeek/tabular' | " align code on a sign, like :Tab/= 84Plug 'godlygeek/tabular' | " align code on a sign, like :Tab/=
85Plug 'mhinz/vim-signify' | " uses the sign column to indicate added, modified and removed lines
86let g:signify_vcs_list = [ 'git' ] | " use signify only with git (improves speed when loading buffers, see :h signify)
87let g:signify_cursorhold_insert = 1
88let g:signify_cursorhold_normal = 1
89let g:signify_update_on_bufenter = 0
90let g:signify_update_on_focusgained = 1
86 91
87" TESTING: | " plugins which I am currently trying... 92" TESTING: | " plugins which I am currently trying...
88Plug 'rkitover/vimpager' 93Plug 'rkitover/vimpager'
@@ -98,13 +103,14 @@ Plug 'mtth/scratch.vim'
98nnoremap <F2> :ScratchPreview<CR> 103nnoremap <F2> :ScratchPreview<CR>
99 104
100" VIM_ROOTER: | " Unobtrusive scratch window 105" VIM_ROOTER: | " Unobtrusive scratch window
106" autocmd BufEnter * lcd %:p:h | " Plugin vim-rooter get used instead (which is much more sane as well)
101Plug 'airblade/vim-rooter' | " makes :lcd changes to projects (git-)root (code-completion, gf, grep, find) 107Plug 'airblade/vim-rooter' | " makes :lcd changes to projects (git-)root (code-completion, gf, grep, find)
102let g:rooter_targets="/,*.c,*.h" | " only use rooter for C, not LaTeX or anything else 108let g:rooter_targets="/,*.c,*.h" | " only use rooter for C, not LaTeX or anything else
109" Vim rooter can be replaced by :Gcd provided by fugitive :)
103 110
104" BUFEXPLORER: | " a buffer to list all buffers has the advantage, that default /-searches work in there 111" BUFEXPLORER: | " a buffer to list all buffers has the advantage, that default /-searches work in there
105Plug 'jlanzarotta/bufexplorer' 112Plug 'jlanzarotta/bufexplorer'
106nnoremap <F12> :ToggleBufExplorer<CR> 113nnoremap <F12> :ToggleBufExplorer<CR>
107" autocmd BufEnter * lcd %:p:h | " Plugin vim-rooter get used instead (which is much more sane as well)
108 114
109" NERDTree: replaces NetRW, as long as it has so many bugs 115" NERDTree: replaces NetRW, as long as it has so many bugs
110Plug 'scrooloose/nerdtree' | " 116Plug 'scrooloose/nerdtree' | "
@@ -244,7 +250,9 @@ if has("python")
244 let g:syntastic_auto_loc_list = 0 250 let g:syntastic_auto_loc_list = 0
245 let g:syntastic_check_on_open = 1 251 let g:syntastic_check_on_open = 1
246 let g:syntastic_check_on_wq = 0 252 let g:syntastic_check_on_wq = 0
247 let g:syntastic_quiet_messages = {"type":"style"} 253 " let g:syntastic_quiet_messages = {"type":"style"}
254 "
255 let g:syntastic_python_flake8_args = '--max-complexity=10 --max-line-length=120 --exclude venv --doctests --exit-zero'
248 " filter ( = do not display) style/formatting errors and warnings 256 " filter ( = do not display) style/formatting errors and warnings
249 let g:syntastic_error_symbol = '✖' 257 let g:syntastic_error_symbol = '✖'
250 let g:syntastic_style_error_symbol = '✗' 258 let g:syntastic_style_error_symbol = '✗'
@@ -573,6 +581,8 @@ if has("autocmd")
573 " change to the current working directory (p like pwd) 581 " change to the current working directory (p like pwd)
574 let @p = ":lcd %:p:h" 582 let @p = ":lcd %:p:h"
575 583
584 let @l = ":let g:signify_vcs_cmds={'git': 'git diff --no-color --no-ext-diff -U0 HEAD^ -- %f'}|:SignifyRefresh"
585
576 " exec current line as a command, insert output of command (from: https://youtu.be/MquaityA1SM?t=35m45s) 586 " exec current line as a command, insert output of command (from: https://youtu.be/MquaityA1SM?t=35m45s)
577 nnoremap Q !!$SHELL<CR> 587 nnoremap Q !!$SHELL<CR>
578 588
..