Michael Wookey wrote (2008-09-08 08:47 +1000):
Vim 7.2 provides a better alternative. If the command is specifically
'git' then setting the filetype to 'git' also provides the correct
syntax highlighting.
Thanks, I didn't know that. Definitely better. I see filetype "git" is
already in my Vim 7.1.314 (Debian Etch backports).
Perhaps some of these ideas should be added to the Vim wiki...
http://vim.wikia.com/wiki/Display_shell_commands%27_output_on_Vim_window
This Vim tip was originally written by me. I extended it with the
version control tools.