vi editor is not responding

余生长醉 提交于 2020-02-21 10:28:25

问题


vi editor is not responding any command in ksh.

I tried q, ctrl+c, :q!, nothing responded. I have to close connection on secureCrt and re-login.

Does anyone know cause-and solution?


回答1:


I think you wanted to save the file with CTRL-s. That's a screen-lock. Use CTRL-q to unlock and save with :w.




回答2:


Did you try ESC-colon-q-bang?

:q! 

ESC to get out of insert mode, colon is to enter command mode, 'q' to quit, the bang is to discard any changes. It looks like you may just be missing the colon for command mode.

Check out this post for other ways to exit vi: https://stackoverflow.com/a/11828573/2543416



来源:https://stackoverflow.com/questions/39356829/vi-editor-is-not-responding

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!