I would like vim to do this in order to have syntax highlight as set up in vim (or without need for extra tools). So instead to use
cat file | <some_sh_tool> I would use
vim +"some_opts" +"..." +q file. The problem is that vim restores previous screen upon exit, but using some remote access tools this didn't happen so it was basically working as cat with syntax highlight.
So, is this possible ?
Thinking more about this I think this is great thing to have. Apart from syntax highlighting other features of vim could be used while displaying file content, like line numbers, white space, wrapping,etc... especially within script and because vim is omnipresent.