On Windows using the Git/MinGW package, I was trying to use the command
git rebase -i HEAD~3 to rewrite history interactively. By default,
VIM is used to edit the rebase command file. Unfortunately, it does
not function properly in a plain old CMD window. Also, Wordpad would
probably be a better choice anyway. I ran in to difficult configuring
this. After much experimentation, I discovered that the following Git
configuration would work:
git config --system core.editor "cmd //c start //wait wordpad"
The /WAIT is needed to make sure that Git doesn't just carry on immediately after START returns. START is needed to make it easier to launch Wordpad which does not usually live on the PATH. Finally, the doubled slashes are need to inhibit MinGW's automatic pathname expansion (which rewrites paths: /c/xyz -> c:/xyz and /wait -> c:/mingwinstalldir/wait).