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;
let ext = expand("%:e")
if ext == "pyem"
return
- elif ext == "ptl"
+ elseif ext == "ptl"
!compyle-ptl %
else
!compyle %
!rm -f %[co]
endif
if getline(1) =~ "^#!"
- !chmod +x %
+ call SetExecutableBit(1)
endif
endif
endfunction