X-Git-Url: https://git.phdru.name/?a=blobdiff_plain;f=.vim%2Fftplugin%2Fpython.vim;h=95333e6f57c50e17a8768bff14d08f1cdc99be45;hb=88c29c2b4ebe7406ac70b23a3dee74e3d32294f9;hp=c2367b661b124378e7aad6b96aea3893bd0c03db;hpb=31f09c0229091c165abb1e4eeab9b055212047c5;p=dotfiles.git diff --git a/.vim/ftplugin/python.vim b/.vim/ftplugin/python.vim index c2367b6..95333e6 100644 --- a/.vim/ftplugin/python.vim +++ b/.vim/ftplugin/python.vim @@ -32,7 +32,7 @@ function! SavePython() let ext = expand("%:e") if ext == "pyem" return - elif ext == "ptl" + elseif ext == "ptl" !compyle-ptl % else !compyle % @@ -40,7 +40,7 @@ function! SavePython() !rm -f %[co] endif if getline(1) =~ "^#!" - !chmod +x % + call SetExecutableBit(1) endif endif endfunction