Score:0

VIM, ESC key doesn't work - Ubuntu 20.04

ru flag

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

elmclose avatar
cn flag
looks like nano to me -- not vim
Score:1
ru flag

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?

Genis avatar
ru flag
Thanks. Do you think it's safe to set it up as the default editor? ubuntu sudo editor=vim
mattb avatar
in flag
@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)
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.