Andreykin Sergey
Andreykin Sergey

Reputation: 113

Can't change the mode of vi editor

When I try to leave an inserting mode

:i

and press "Esc" key terminal put

^[

character in console and following run in inserting mode.
So I can't do something like:

:wq

What happening?

:i 
Entering ex input mode.
*****/usr/home/example/example2/cron_task.sh^[

Upvotes: 0

Views: 1702

Answers (1)

jhnc
jhnc

Reputation: 16771

:i CR is not the same command as i

To leave the latter, you enter: ESC

To leave the former, you enter: CR.CR

Upvotes: 3

Related Questions