Tuesday, May 22, 2012

Re: Using vim to syntax highlight stdin

On May 22, Scott (Scott) wrote:
>Is there any way to get it to read from stdin?
>
>eg. ./myprog | blob.vim -c "setl filetype=log" -

What's blob.vim?

With the script I linked, just do something like

v '-c set ft=log' -

--
Magnus Woldrich
m@japh.se, woldrich@cpan.org
irc: scp1 on freenode
uri: http://japh.se

--
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

No comments: