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 %
- if v:shell_error
- echoerr 'Cannot make file executable: ' . v:shell_error
- endif
+ call SetExecutableBit(1)
endif
endif
endfunction