Git does not call the editor, when you git show something, it calls your pager, and two serve completely different purposes.
After configuring core.pager you can configure it with git config --global core.pager <your editor here> , but this will not help if your editor cannot be configured to read from stdin.
source share