Benji Fisher wrote:
On Fri, Jul 21, 2006 at 03:31:15PM -0500, mwoehlke wrote:
Is this possible? It just occurred to me that it would be great if there was a VIM-related program that would 'cat' in color using VIM's highlighting rules. Is this something that VIM could be made to do via scripting, or would it need to be a totally new program? If the latter, any guesses how hard it would be to make such a critter?

I notice that "echo ':q' | vim <file>" sort-of works... it gives the first page, plus trailing '~'s (if less then a page), although this wouldn't work with TERM's where curses displays are a separate buffer (like 'xterm', but not 'linux').

     Maybe this is what you want:

http://www.vim.org/tips/tip.php?tip_id=121

I keep meaning to play with this, but it occurs to me I am pretty sure this is not what I want. First off, I want 'cat', not 'more' (i.e. not a pager). Second, for it to work right, it has to *not* use the termlib, for the above-mentioned reason.

--
Matthew
DOS Attack: See America Online -- my college room mate

Reply via email to