Dasn wrote:
> 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
It appears to work in more places when leaving out the "env" command:
#!vim -S
echo "this is a Vim script"
quit
--
SECOND SOLDIER: It could be carried by an African swallow!
FIRST SOLDIER: Oh yes! An African swallow maybe ... but not a European
swallow. that's my point.
"Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD
/// Bram Moolenaar -- [EMAIL PROTECTED] -- http://www.Moolenaar.net \\\
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\ download, build and distribute -- http://www.A-A-P.org ///
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_dev" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---