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

--
Matthew
Doom doom dooM doo-DooM dOOm DOom doOM... DOOM! -- Gir

Reply via email to