Reverie of a Shell Fiend
Yesterday, I sent a message to the Vim development mailing list. I've been using GVim to manually edit the contents of a stream mid-pipeline:
cat testfile | sed '/[0-9]:\|=/d' | awk '{print $2 ", " $1}' |\
sort | cat -n | gvim -V0 - | grep -v "Vim:" | sed 's/1/*/' > test
Unfortunately, Vim emits a message when it reads from stdin, so I have to use grep -v to pull the notification out of the output stream after closing GVim. Bram responded with an explanation and some suggestions. I'll finally be able to fix the problem by making the message go to stderr. Piping through Vim will be less of a hassle now.
Posted on 2005-03-230 comments
