ls -l . > oeasy.txt
vi oeasy.txt
save
相关的帮助📕:h save
saveas {file}
另存为
啊:saveas o2z.txt
o2z.txt
是 saveas
的参数,也就是保存的文件名:q
cat o2z.txt
可以看到另存的 o2z.txt
真的被保存下来了!🤪,但是能否直接保存当前文件呢?
oeasy.txt
:h save
:w[rite]
命令:write
:w
oeasy.txt[+]
中那个 [+]
,就是有修改但是未保存的标志vim
就会报错[+]
又出来了:q
的话E37
错误:h
什么:h E37
查询这个错误的详细信息:q
退出报错子窗口:q
cat
查看 oeasy.txt
:saveas {file}
:w