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
let g:formatdef_autopep8 = "'autopep8 --aggressive --aggressive - --range '.a:firstline.' '.a:lastline"
let g:formatters_python = ['autopep8']
noremap <F3> :Autoformat<CR>
+
+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