all as described in How do I use vim as 'git log' editor? doesn\'t work for git show . I use often
git show HEAD ctrl+z ps PID TTY TIME CM
Here is a Twitter post to solve that problem.
https://twitter.com/oliviergay/status/179692941063888896
Using git show with vim and syntax highlighting: vimgitshow() { git show "$1" | vim - "+set filetype=${1##*.}"; }
git show
vim
vimgitshow() { git show "$1" | vim - "+set filetype=${1##*.}"; }