:vs filename
文件对比
:new filename
新建文件
:e 文件名
打开文件
:w 文件名
保存;省略文件名,则保存当前文件
:q
退出
:x
退出并保存
:bd
删除缓冲区(转换为关闭当前文件,但不退出vim)
其他参考:
https://www.cnblogs.com/pengdonglin137/p/3525297.html
https://www.cnblogs.com/gmpy/p/11177719.html
https://blog.csdn.net/zhangxiao93/article/details/53677764