无法更改vi编辑器的模式

问题描述 投票:0回答:1

当我尝试离开插入模式

:一世

并按“Esc”键端子放

^[

控制台中的字符以及后续在插入模式下运行 所以我做不了类似的事情:

:wq

发生了什么?

:i 
Entering ex input mode.
*****/usr/home/example/example2/cron_task.sh^[
bash unix console vi freebsd
1个回答
3
投票

:i CR与i的命令不同

要离开后者,请输入:ESC

要离开前者,请输入:CR.CR

© www.soinside.com 2019 - 2024. All rights reserved.