From: Oleg Broytman Date: Tue, 18 Mar 2014 02:20:01 +0000 (+0400) Subject: Simplify autocommand by making it buffer-local X-Git-Url: https://git.phdru.name/?p=dotfiles.git;a=commitdiff_plain;h=31f09c0229091c165abb1e4eeab9b055212047c5 Simplify autocommand by making it buffer-local --- 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;