From dd151e54fac910363a0bbe423d2057b8c68cf940 Mon Sep 17 00:00:00 2001 From: Teddy Wing Date: Thu, 13 Aug 2015 11:50:32 -0400 Subject: ftplugin/python.vim: Add mapping to flake8 Add a mapping to flake8 the current file for PEP8 syntax violations so I don't have to type out the path of a file that I already have open in order to check it against flake8. --- ftplugin/python.vim | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'ftplugin/python.vim') diff --git a/ftplugin/python.vim b/ftplugin/python.vim index 7ebcbae..434ae8e 100644 --- a/ftplugin/python.vim +++ b/ftplugin/python.vim @@ -19,3 +19,7 @@ nnoremap O O " Quickly add a debug line nnoremap gdo oimport ipdb; ipdb.set_trace()_ nnoremap gdO Oimport ipdb; ipdb.set_trace()_ + + +" Flake8 validation +nnoremap gs :!flake8 % -- cgit v1.2.3