Incorrect example for #!

2008-01-23 Fir de Conversatie Dasn
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

Re: Incorrect example for #!

2008-01-23 Fir de Conversatie Erik Falor
On 23/01/2008, Dasn [EMAIL PROTECTED] wrote: 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 Which platform are you on? On SunOS

Re: Incorrect example for #!

2008-01-23 Fir de Conversatie Matt Wozniski
On Jan 23, 2008 11:15 AM, Erik Falor wrote: On 23/01/2008, Dasn wrote: 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

Re: Incorrect example for #!

2008-01-23 Fir de Conversatie Bram Moolenaar
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

Re: Incorrect example for #!

2008-01-23 Fir de Conversatie Dasn
On 23/01/08 21:20 +0100, Bram Moolenaar wrote: It appears to work in more places when leaving out the env command: #!vim -S echo this is a Vim script quit This will trigger 'not found' error in fbsd, obsd and linux (Arch with bash) in which I've tested. As this line