In documentation:
:h #!
:#!{anything} Ignored, so that you can start a Vim script with: >
#!/usr/bin/env vim -S
echo "this is a Vim script"
quit
I don't think "#!/usr/bin/env vim -S" is workable on all platforms.
$ cat test.vim
#!/usr/bin/env vim -S
echo "this is a Vim script"
quit
$ chmod +x test.vim
$ ./test.vim
env: vim -S: No such file or directory
--
Dasn
--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_dev" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---