News for hackers. Stuff that matters.
Re:Use Vim Inside a Unix Pipe Like Sed or AWK by andrewstuart2 on Tuesday April 05, 2016 @11:29AM (#11431129)
Yikes, we can shorten that a bit. :-)

    function vimify() {
      (vim - -esbnN -c $@ -c 'w!/dev/fd/3|q!' >/dev/null) 3>&1
    }

    $ echo '<h1>Change Me</h1>' | vimify 'norm vitxiOK I Will'
(Don't forget '-c' if you have more than one transform.)
Re:Use Vim Inside a Unix Pipe Like Sed or AWK by markmontymark on Tuesday April 05, 2016 @12:22PM (#11431716)
And further shorten that to

echo '<h1>Change Me</h1>' | vimify 'norm vitcOK I Will'

Re:Use Vim Inside a Unix Pipe Like Sed or AWK by alexdme on Tuesday April 05, 2016 @02:17PM (#11432925)
And further shorten that to

echo '<h1>Change Me</h1>' | vimify 'norm citOK I Will'

Re:Use Vim Inside a Unix Pipe Like Sed or AWK by pif on Tuesday April 05, 2016 @12:51PM (#11432028)
For robustness sake, you may change $@ with "$*".