diff options
author | Max Christian Pohle | 2017-05-31 11:21:30 +0200 |
---|---|---|
committer | Max Christian Pohle | 2017-05-31 11:21:30 +0200 |
commit | e150895bcecd8895157ab702eddef8adc69b6bfb (patch) | |
tree | 08454514274a2d80c0d3848e8e62005ede5fe65f /vimrc-full | |
parent | 62d48a0daa800127f835d47b8ead3e68ae08b3a2 (diff) | |
download | vim-karlmarks-e150895bcecd8895157ab702eddef8adc69b6bfb.tar.bz2 vim-karlmarks-e150895bcecd8895157ab702eddef8adc69b6bfb.zip |
Improved speed and code checking
Deactivated other VCS in vim-signify
Diffstat (limited to 'vimrc-full')
-rw-r--r-- | vimrc-full | 16 |
1 files changed, 13 insertions, 3 deletions
@@ -81,8 +81,13 @@ call plug#begin() | |||
81 | 81 | ||
82 | Plug 'tpope/vim-surround' | " plugin makes cs"' inside a line replace " with ' | 82 | Plug 'tpope/vim-surround' | " plugin makes cs"' inside a line replace " with ' |
83 | Plug 'tpope/vim-fugitive' | " the most complete GIT integration plugin | 83 | Plug 'tpope/vim-fugitive' | " the most complete GIT integration plugin |
84 | Plug 'mhinz/vim-signify' | " uses the sign column to indicate added, modified and removed lines | ||
85 | Plug 'godlygeek/tabular' | " align code on a sign, like :Tab/= | 84 | Plug 'godlygeek/tabular' | " align code on a sign, like :Tab/= |
85 | Plug 'mhinz/vim-signify' | " uses the sign column to indicate added, modified and removed lines | ||
86 | let g:signify_vcs_list = [ 'git' ] | " use signify only with git (improves speed when loading buffers, see :h signify) | ||
87 | let g:signify_cursorhold_insert = 1 | ||
88 | let g:signify_cursorhold_normal = 1 | ||
89 | let g:signify_update_on_bufenter = 0 | ||
90 | let g:signify_update_on_focusgained = 1 | ||
86 | 91 | ||
87 | " TESTING: | " plugins which I am currently trying... | 92 | " TESTING: | " plugins which I am currently trying... |
88 | Plug 'rkitover/vimpager' | 93 | Plug 'rkitover/vimpager' |
@@ -98,13 +103,14 @@ Plug 'mtth/scratch.vim' | |||
98 | nnoremap <F2> :ScratchPreview<CR> | 103 | nnoremap <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) | ||
101 | Plug 'airblade/vim-rooter' | " makes :lcd changes to projects (git-)root (code-completion, gf, grep, find) | 107 | Plug 'airblade/vim-rooter' | " makes :lcd changes to projects (git-)root (code-completion, gf, grep, find) |
102 | let g:rooter_targets="/,*.c,*.h" | " only use rooter for C, not LaTeX or anything else | 108 | let 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 |
105 | Plug 'jlanzarotta/bufexplorer' | 112 | Plug 'jlanzarotta/bufexplorer' |
106 | nnoremap <F12> :ToggleBufExplorer<CR> | 113 | nnoremap <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 |
110 | Plug 'scrooloose/nerdtree' | " | 116 | Plug '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 | ||