From 31f09c0229091c165abb1e4eeab9b055212047c5 Mon Sep 17 00:00:00 2001 From: Oleg Broytman Date: Tue, 18 Mar 2014 06:20:01 +0400 Subject: [PATCH] Simplify autocommand by making it buffer-local --- .vim/ftplugin/python.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.vim/ftplugin/python.vim b/.vim/ftplugin/python.vim index ac38175..c2367b6 100644 --- a/.vim/ftplugin/python.vim +++ b/.vim/ftplugin/python.vim @@ -23,7 +23,7 @@ setlocal shiftwidth=4 softtabstop=4 compiler python if has("unix") - execute "autocmd BufWritePost " . expand("%") . " call SavePython()" + autocmd BufWritePost call SavePython() endif " Compile and remove *.cgi[co] files after compilation; do not remove *.py[co] files; -- 2.39.2