If I have a file with a shebang line (e.g. #!/bin/bash) open in Vim and the file has execute permissions (i.e. chmod +x) I know I can type this to exec
#!/bin/bash
chmod +x
None of the previous answers work if your filename/directory path has spaces in it. Simple fix.
:!"%:p"