]> git.phdru.name Git - dotfiles.git/commitdiff
Simplify autocommand by making it buffer-local
authorOleg Broytman <phd@phdru.name>
Tue, 18 Mar 2014 02:20:01 +0000 (06:20 +0400)
committerOleg Broytman <phd@phdru.name>
Tue, 18 Mar 2014 02:20:01 +0000 (06:20 +0400)
.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;