vi editor is not responding

2020-08-21 07:49发布

问题:

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



标签: vi