在 vi 编辑界面
Try to force the system to save your buffer with the ex command :pre (shortfor :preserve). If that doesn’t work, look for some files to remove.
Use :sh (or CTRL-Z if you are using a job-control system) to move out of vi and remove files.
Use CTRL-D (or fg) to return to vi when you’re done. Then write your filewith :w!.
:sh ------------ vim to shell
CTRL-D ------------ back to vim
CTRL-Z ------------ vim to shell
fg ------------- back to vim
when vim in command:
数字 0 ---------------- go to head of current line of cursor
$ --------------- go to end of current line of cursor
u ----------------- undo edit
nG ---------------- go to line n of current file