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'
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'
+Plugin 'python-mode/python-mode'
" All of your Plugins must be added before the following line
call vundle#end() " required
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 = ['python3 -m pylint --error-only']
+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
" Color 80th column
highlight ColorColumn ctermbg=7
-let &colorcolumn="80,".join(range(100,999),",")
+let &colorcolumn="80,100".join(range(120,999),",")
" Octave Syntax
" augroup filetypedetect
" Bindings
" Clipboard
noremap <Leader>y "+y
+noremap <Leader>p "+p
+
+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 <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=manual
+ autocmd InsertLeave *.py setlocal foldmethod=expr
+augroup END