let ext = expand("%:e")
if ext == "pyem"
return
- elif ext == "ptl"
+ elseif ext == "ptl"
!compyle-ptl %
else
!compyle %
if ext != "py"
!rm -f %[co]
endif
- if executable(expand('%:p')) || !executable('chmod')
- return
- endif
if getline(1) =~ "^#!"
- !chmod +x %
+ call SetExecutableBit(1)
endif
endif
endfunction