Introducing Vim Shebang Run
January 11, 2014
A very simple plugin that detects the shebang line of the current file, if it exists the file is executed with the given command. The file does not have to have executable permissions.
Get the source.
or map it to something convenient in your .vimrc:
nnoremap <leader>r :ShebangRun <CR>
The preferred way is to use Vundle.
$ cd ~/.vim/bundle $ git clone git://github.com/dbridges/vim-shebang-run