]> git.phdru.name Git - dotfiles.git/blobdiff - .vim/ftplugin/python.vim
Simplify autocommand by making it buffer-local
[dotfiles.git] / .vim / ftplugin / python.vim
index ac3817547d1c8498878287ee5404816080a3155a..c2367b661b124378e7aad6b96aea3893bd0c03db 100644 (file)
@@ -23,7 +23,7 @@ setlocal shiftwidth=4 softtabstop=4
 compiler python
 
 if has("unix")
-   execute "autocmd BufWritePost " . expand("%") . " call SavePython()"
+   autocmd BufWritePost <buffer> call SavePython()
 endif
 
 " Compile and remove *.cgi[co] files after compilation; do not remove *.py[co] files;