python.vundle and added yapf for python format

This commit is contained in:
hophacker 2018-07-21 14:22:42 +08:00
parent aaaaad1002
commit 484d3846ed
4 changed files with 4 additions and 1 deletions

1
vim/settings/yapf.vim Normal file
View File

@ -0,0 +1 @@
autocmd FileType python nnoremap <LocalLeader>= :0,$!yapf<CR>

View File

@ -31,6 +31,7 @@ runtime project.vundle
runtime vim-improvements.vundle
runtime go.vundle
runtime sls.vundle
runtime python.vundle
" The plugins listed in ~/.vim/.vundles.local will be added here to
" allow the user to add vim plugins to yadr without the need for a fork.

View File

@ -8,4 +8,3 @@ Bundle 'jparise/vim-graphql'
Bundle 'chr4/nginx.vim'
Bundle 'derekwyatt/vim-scala'
Bundle 'scrooloose/nerdcommenter'
Bundle 'klen/python-mode'

View File

@ -0,0 +1,2 @@
Bundle 'klen/python-mode'
Bundle 'google/yapf'