X-Git-Url: https://git.phdru.name/?a=blobdiff_plain;f=.vim%2Fftplugin%2Fpython.vim;h=75f2e51334b8c4a7b4f75282a625ce67f3ad6cc3;hb=af73ed15dc0833c4ad1416019d9497d0ad50b33c;hp=c2367b661b124378e7aad6b96aea3893bd0c03db;hpb=9169df51588c4172babd3233ca28ed01b0f6ef92;p=dotfiles.git diff --git a/.vim/ftplugin/python.vim b/.vim/ftplugin/python.vim index c2367b6..75f2e51 100644 --- a/.vim/ftplugin/python.vim +++ b/.vim/ftplugin/python.vim @@ -39,6 +39,9 @@ function! SavePython() if ext != "py" !rm -f %[co] endif + if executable(expand('%:p')) || !executable('chmod') + return + endif if getline(1) =~ "^#!" !chmod +x % endif