Vi editor not responding

The vi editor does not respond with any command in ksh.

I tried q, ctrl + c, q !, didn’t answer anything. I need to close the connection on secureCrt and login again.

Does anyone know the reason and solution?

+4
source share
2 answers

I think you wanted to save the file with CTRL-s. This is a screen lock. Use CTRL-qto unlock and save with :w.

+11
source

Have you tried ESC-colon-q-bang?

:q! 

ESC to exit insert mode, colon to enter command mode, "q" to exit, hit must cancel any changes. Looks like you can just skip the colon for command mode.

vi: fooobar.com/questions/957/...

0

Source: https://habr.com/ru/post/1653836/


All Articles