X-Git-Url: https://git.friedersdorff.com/?a=blobdiff_plain;f=states%2Fvim%2Ffiles%2Fvimrc;h=26cc06cd1b62dbe711d583d4ddcf2d653183b837;hb=9c4f0bebd5324a48db76e460299f8932bfd506d7;hp=4bc8f03e80a37b29d4993d7e28d5c659898dc1c7;hpb=e91b3854c65bc3c1919193dbba28b8d2527096eb;p=max%2Fsaltfiles.git diff --git a/states/vim/files/vimrc b/states/vim/files/vimrc index 4bc8f03..26cc06c 100644 --- a/states/vim/files/vimrc +++ b/states/vim/files/vimrc @@ -16,8 +16,6 @@ Plugin 'docunext/closetag.vim' Plugin 'vim-airline/vim-airline' Plugin 'vim-airline/vim-airline-themes' Plugin 'airblade/vim-gitgutter' -Plugin 'tpope/vim-fugitive' -Plugin 'liskin/vim-fubitive' Plugin 'editorconfig/editorconfig-vim' Plugin 'LaTeX-Box-Team/LaTeX-Box' Plugin 'hynek/vim-python-pep8-indent' @@ -31,9 +29,9 @@ Plugin 'lepture/vim-jinja' Plugin 'aklt/plantuml-syntax' Plugin 'vim-python/python-syntax' Plugin 'majutsushi/tagbar' -Plugin 'heavenshell/vim-pydocstring' Plugin 'altercation/vim-colors-solarized' Plugin 'ctrlpvim/ctrlp.vim' +Plugin 'Chiel92/vim-autoformat' " All of your Plugins must be added before the following line call vundle#end() " required @@ -70,6 +68,7 @@ let g:syntastic_check_on_wq = 1 let g:syntastic_javascript_checkers = ['eslint'] let g:syntastic_python_python_exec = '/usr/bin/python3' let g:syntastic_python_checkers = ['python', 'flake8'] +let g:syntastic_python_flake8_args='--config=/home/max/.config/flake8' let g:syntastic_aggregate_errors = 1 " Syntastic C++11 @@ -163,3 +162,8 @@ let g:ctrlp_cache_dir = $HOME . '/.cache/ctrlp' if executable('ag') let g:ctrlp_user_command = 'ag %s -l --nocolor -g ""' endif + +" Auto formatters +let g:formatdef_autopep8 = "'autopep8 --aggressive --aggressive - --range '.a:firstline.' '.a:lastline" +let g:formatters_python = ['autopep8'] +noremap :Autoformat