0

I'm using Git to control the different versions of my project. When reverting to a previous commit it shows a VIM terminal as expected.

Theoretically I should press ESC to write my command, but ESC key doesn't respond, and therefore I cannot give any command to VIM. It is the same in all my projects. I'm using Ubuntu 20.04 in a Lenovo ideapad.

Any help is really appreciated.

the VIM terminal that appears when trying to git revert

Genis
  • 1
  • 1

1 Answers1

1

The screenshot that you have shared appears to be a nano text editor and not VIM.

See for example How to edit files in a terminal with nano?

steeldriver
  • 131,985
  • 21
  • 239
  • 326
Milan
  • 11
  • 2
  • Thanks. Do you think it's safe to set it up as the default editor? ubuntu sudo editor=vim – Genis Feb 09 '22 at 18:48
  • @Genis you could do for git only with `git config --global core.editor "vim"` (see [this answer](https://stackoverflow.com/a/2596835/14467607) for more details) – mattb Feb 09 '22 at 21:50