巴扎黑2017-04-17 15:38:47
The questioner presses the esc key to see if there is a cursor at the bottom left of the file. This indicates that you can use the keyboard to enter things. Don’t forget the colon.
PHPz2017-04-17 15:38:47
:q! Force quit (without saving)
:wq (save and launch)
:q (exit without performing changes, read permission)
黄舟2017-04-17 15:38:47
Actually, you don’t need to exit vi
Ctrl + z
can suspend vi
$> jobs
You can check what processes are there
$> fg
You can put vi back into running state
Of course, you can also use fg %[number]
to switch to other processes. For specific numbers, refer to the return result of jobs
As a lazy person, I think it is faster to use :x
to exit, which is equivalent to :wq
(save+exit)
It’s better to use Emacs ^ ^