Is there any way to configure vim to syntax highlight stdin & NOT paginate?
eg. ./myprog | vim --insert-magic-here
The less.sh script does all the syntax highlighting I want, but it paginates it's output which I do not want.
Scott. :)
You will probably need to set the filetype manually, but Vim can easily handle stuff from stdin. E.g.
./myprog | vim -c "setl filetype=myfiletype" -
My question is about preventing pagination. I'd like to use Vim syntax highlighting to highlight my program output but I do NOT want to Vim to paginate the output.
Is there any way to configure Vim's less.sh script NOT to paginate it's output?
Thanks,
Scott. :)
Ah! Yes, me want! :)
Is there any way to get it to read from stdin?
eg. ./myprog | blob.vim -c "setl filetype=log" -
Also, the syntax highlighting has a bug:
Highlighting in Vim: http://www.tiikoni.com/tis/view/?id=70b54d5
Highlighting in Blob: http://www.tiikoni.com/tis/view/?id=9315eef
Scott. :)
It doesn't appear to be able to read from stdin.
Scott.
On May 22, Scott (Scott) wrote:My question is about preventing pagination. I'd like to use Vim syntaxhighlighting to highlight my program output but I do NOT want to Vim topaginate the output.
You want the data highlighted on stdout?
https://github.com/trapd00r/utils/blob/master/v