Thursday, February 6, 2014

Re: Can vim output its entire display to stdout?

Hi Michael!

On Do, 06 Feb 2014, Michael Clayton wrote:

> I was just searching for command-line syntax-coloring tools when I realized that vim would be the perfect fit, if it has an output-only flag of some type.
>
> Forgive me if any of my terminology is wrong.
>
> An idealized example would be...
>
> $ vim index.html --output-only
> <html>...</html>
> $
>
> Or...
>
> $ cat index.html | vim --output-only -
> <html>...</html>
> $
>
> Vim would be launched, draw the display to stdout with vimrc settings (most importantly syntax on and colorscheme), then exit immediately.
>
> The output would be persistent (would not disappear when vim exits).
>
> Is this currently possible? Thanks! And long live vim.


Check out this script:
https://github.com/trapd00r/utils/blob/master/_v
which is a vimcat like tool, to output syntax highlighted files to
stdout.

Are you the one, that asked the same question at reddit?

Best,
Christian
--
Wisdom is knowing what to do with what you know.
-- J. Winter Smith

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

---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

No comments: