一、vim操作
1,保存退出 esc : w q
2, 正常退出,没有操作文档 esc : q
3,不保存退出 esc : q !
4,强制退出 esc !
Linux操作
原文:https://www.cnblogs.com/luoa/p/11610563.html