[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Help-bash] How to set the terminal to vim?
From: |
Peng Yu |
Subject: |
[Help-bash] How to set the terminal to vim? |
Date: |
Wed, 3 Jun 2015 09:23:12 -0500 |
I see the following warning. It is because the bash script takes the
stdin. Does anybody know how to make vim get back the stdin? Thanks.
$ cat main.sh
#!/usr/bin/env bash
while read -r -d $'\n' line
do
echo "$line"
done
vim main.sh
$ ./main.sh </dev/null
Vim: Warning: Input is not from a terminal
--
Regards,
Peng
- [Help-bash] How to set the terminal to vim?,
Peng Yu <=