Incluir en el fichero .vimrc:

au BufWritePost * if getline(1) =~ «^#!» | if getline(1) =~ «/bin/» | silent !chmod a+x <afile> | endif | endif