]> git.phdru.name Git - dotfiles.git/blobdiff - .vim/ftplugin/python.vim
.vim: Add SetExecutableBit based on Tip 212
[dotfiles.git] / .vim / ftplugin / python.vim
index c2367b661b124378e7aad6b96aea3893bd0c03db..bc1f672ac7cd78551e3d6d3e5512669a3807619f 100644 (file)
@@ -40,7 +40,7 @@ function! SavePython()
          !rm -f %[co]
       endif
       if getline(1) =~ "^#!"
-         !chmod +x %
+         call SetExecutableBit(1)
       endif
    endif
 endfunction