Am 2015-04-20 03:58, schrieb Peng Yu:
> vim -T dumb -c 'echo "Hello World!"' -c q
>
> ~$ cat main.sh
> #!/usr/bin/env bash
>
> cat < /dev/stdin > /dev/null
> vim -T dumb -c 'echo "Hello World!"' -c q
>
> But running the following command will show "Vim: Warning: Input is
> not from a terminal". The problem is related with /dev/stdin. Does any
> know how to understand this behavior of vim? Thanks.
You mean, why the warning is printed? The warning just means that
/dev/stdin
is (most likely) redirected. That is useful to know,
since it means, you can't type commands to control Vim.
Or is there actually a different behaviour depending on whether
stdin is redirected?
Best,
Christian
--
--
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
---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
No comments:
Post a Comment