vim: automatically chmod+x for files with shebang
Wouldn’t it be useful, if any shell, python or any other kind of script you edit with vim was set to be executable automatically? Given the file starts with a shebang line, the following vim script does this automatically for you.