From 07974b63bf3378f714e5811824306aae2ea2c3a4 Mon Sep 17 00:00:00 2001 From: Knut Ahlers Date: Fri, 24 Feb 2017 15:14:06 +0100 Subject: [PATCH] Remove non-pep8 formatting, add automatic pep8 on save Signed-off-by: Knut Ahlers --- after/ftplugin/python.vim | 3 --- vimrc | 1 + 2 files changed, 1 insertion(+), 3 deletions(-) delete mode 100644 after/ftplugin/python.vim diff --git a/after/ftplugin/python.vim b/after/ftplugin/python.vim deleted file mode 100644 index e824e14..0000000 --- a/after/ftplugin/python.vim +++ /dev/null @@ -1,3 +0,0 @@ -setlocal ts=2 -setlocal sw=2 -setlocal sts=2 diff --git a/vimrc b/vimrc index 4d3ce68..b8bd4bc 100644 --- a/vimrc +++ b/vimrc @@ -1014,3 +1014,4 @@ let g:go_autodetect_gopath = 0 let g:autopep8_aggressive=1 let g:autopep8_disable_show_diff=1 +autocmd BufWritePre *.py Autopep8