I've just been working with some xml's recently and was getting annoyed that I don't have any syntaxhighlighting on the bash stdout.. Ok, I can save it and let then vim open it, so I've got my syntax highlighting. Not what I want ;-) After a quick research, I've found the 'less' macro within vim. What you can do is to put the following alias in your .bashrc and then you're able to pipe any output of a command to it and you'll get the syntax thingy (next to linenumbers etc.).
alias vless='/usr/share/vim/vim73/macros/less.sh'
Use it like this:
cat test.xml | vless
stupid example, but you know what I mean..
A nice thing is also, that you can scroll with the J and K-Key, which you usually can't do in vim, it will instead just jump a line up or down..
Cheers,
Raphi