X-Git-Url: https://git.friedersdorff.com/?a=blobdiff_plain;f=states%2Fvim%2Ffiles%2Fvimrc;h=c39436f6209fe414277efa7b203018cb6688a149;hb=37e19ab57e1256c40c95445d3699a0325979a7ac;hp=558f124c77be16ab37911ae6338ccbe4bdc18c74;hpb=86e45e95f422dd62983c3a2fbcdfbc2901ea6f17;p=max%2Fsaltfiles.git diff --git a/states/vim/files/vimrc b/states/vim/files/vimrc index 558f124..c39436f 100644 --- a/states/vim/files/vimrc +++ b/states/vim/files/vimrc @@ -32,6 +32,7 @@ Plugin 'majutsushi/tagbar' Plugin 'altercation/vim-colors-solarized' Plugin 'ctrlpvim/ctrlp.vim' Plugin 'Chiel92/vim-autoformat' +Plugin 'python-mode/python-mode' " All of your Plugins must be added before the following line call vundle#end() " required @@ -164,4 +165,17 @@ if executable('ag') endif " Auto formatters +let g:formatdef_autopep8 = "'autopep8 --aggressive --aggressive - --range '.a:firstline.' '.a:lastline" let g:formatters_python = ['autopep8'] +noremap :Autoformat + +let g:pymode_lint = 0 +let g:pymode_folding = 1 +let g:pymode_rope = 1 +let g:pymode_rope_completion = 1 + +augroup unset_folding_in_insert_mode + autocmd! + autocmd InsertEnter *.py setlocal foldmethod=marker + autocmd InsertLeave *.py setlocal foldmethod=expr +augroup END