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