I am on Windows 10. I first installed Git for windows and
then I installed posh-git
in PowerShell.
Git installed fine into the folder C:\Program Files\Git
which included vim.exe
in C:\Program Files\Git\usr\bin\
.
I can run vim.exe
from PowerShell like this:
& 'C:\Program Files\Git\usr\bin\vim.exe' foo.txt
which works fine. But when I do git commit
in PowerShell, git
brings up vim.exe
with the following text:
# Please enter the commit message for your changes. Lines starting
# with '#' will be ignored, and an empty message aborts the commit.
#
# On branch master
#
# Initial commit
#
# Changes to be committed:
# new file: a.txt
#
If I press i I enter insert mode. The problem is that now the space key does not move the text to the right. It simply moves the cursor to the left and it is impossible to delete the text that is already there:
As can be seen from the above screen shot, the predeclared text cannot be erased. Any idea what is going on?