]> git.phdru.name Git - dotfiles.git/blobdiff - .vim/ftplugin/python.vim
.fvwmrc: Remove dead code
[dotfiles.git] / .vim / ftplugin / python.vim
index c2367b661b124378e7aad6b96aea3893bd0c03db..95333e6f57c50e17a8768bff14d08f1cdc99be45 100644 (file)
@@ -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