]> git.friedersdorff.com Git - max/saltfiles.git/blobdiff - states/vim/files/vimrc
Use flake8 and python for performance linting
[max/saltfiles.git] / states / vim / files / vimrc
index c1c8ab51fa0e5acc0705f27808ca88aae78d9fd4..ea9904b551141a6f8fca12f83a7dd19c325adda5 100644 (file)
@@ -30,10 +30,10 @@ Plugin 'gu-fan/riv.vim'
 Plugin 'lepture/vim-jinja'
 Plugin 'aklt/plantuml-syntax'
 Plugin 'vim-python/python-syntax'
-Plugin 'luochen1990/rainbow'
 Plugin 'majutsushi/tagbar'
 Plugin 'heavenshell/vim-pydocstring'
 Plugin 'altercation/vim-colors-solarized'
+Plugin 'ctrlpvim/ctrlp.vim'
 
 " All of your Plugins must be added before the following line
 call vundle#end()            " required
@@ -69,7 +69,7 @@ let g:syntastic_check_on_open = 1
 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_aggregate_errors = 1
 
 " Syntastic C++11
@@ -147,9 +147,6 @@ autocmd FileType python setlocal foldmethod=indent foldnestmax=2
 " Paren highlighting
 hi MatchParen cterm=underline ctermbg=none ctermfg=none
 
-" Rainbow parens
-let g:rainbow_active = 1
-
 " Activate tagbar with F8
 nmap <F8> :TagbarToggle<CR>
 
@@ -161,3 +158,8 @@ let g:pydocstring_doq_path= "/home/max/.local/bin/doq"
 " 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