davvs wrote:
>
> Hi I want to find out if there's any way to run a one line shell command to
> do the same as the following:
>
> vim pastefile.txt
> (press keyboard buttons GO"*pwq!)
I guess you meant '0' (Zero) instead of 'O' (upper case oh) and that there
is a colon missing before 'wq!'.
>
> I want someting like this:
> prompt> vim pastefile.txt -inputchars 'GO"*pwdq!"
> prompt>
You can achieve this with
vim -c 'normal G0"*p' -c 'wq!' pastefile.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
To unsubscribe, reply using "remove me" as the subject.
No comments:
Post a Comment