Reputation: 29
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
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:
:q
Enter or ZQ - don't write changes:x
Enter or ZZ - write any changesUpvotes: 1