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 HTH --Benji Fisher