Yohan So
Yohan So

Reputation: 29

ESC key doesn`t work when I enter 'vi .bash_profile'

enter image description here

As I said on title, ESC key does not work when I enter to 'vi .bash_profile' and I have to use forced termination. I searched other question already and I tried press 'Ctrl+[' but it was not working also. Does anybody know how to escape from 'vi .bash_profile' after editing?

Upvotes: 2

Views: 479

Answers (1)

Armali
Armali

Reputation: 19375

ESC key does not work when I enter to 'vi .bash_profile' and I have to use forced termination.

vi is not terminated by Esc. To exit from vi, there are a number of ways:

  • :qEnter or ZQ - don't write changes
  • :xEnter or ZZ - write any changes

Upvotes: 1

Related Questions