Monday, May 21, 2012

Re: Using vim to syntax highlight stdin

I hope this doesn't sound ungrateful, but that doesn't answer my question at all!

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. :)




On Tuesday, May 22, 2012 12:55:33 AM UTC+10, Ben Fritz wrote:
> On Sunday, May 20, 2012 6:36:02 PM UTC-5, Scott wrote:
> > I know I'm trying to abuse Vim in ways it's not supposed to be used, but I'm just wondering if this is possible ...
> >
> > 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.
> >
>
> 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" -

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

Post a Comment