Thursday, October 4, 2012

Re: how to: vim -o STDIN somefile.txt

Hi,

her wrote:
> how can i do this:
>
> vim -o STDIN somefile.txt
>
> what i want is something like this:
>
> $ vim -o "some text from stdin that i typed" somefilename.txt
>
> and vim would open horizontally splitted as in:
>
> some text from stdin that i typed
> -------------------------
> stuff from somefilename.txt

$ echo "some text from stdin that i typed" | vim - -c "sp somefilename.txt"

or

$ cat | vim - -c "sp somefilename.txt"

Regards,
Jürgen

--
Sometimes I think the surest sign that intelligent life exists elsewhere
in the universe is that none of it has tried to contact us. (Calvin)

--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

No comments:

Post a Comment