Hi,

The following code runs well.

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.

~$ ./main.sh <<< xxxx

-- 
Regards,
Peng

-- 
-- 
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 [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to