使用vi编辑器遇到的问题

来源:互联网 发布:mac的flash怎么更新 编辑:程序博客网 时间:2024/04/28 17:05

16-03-04

E212: Can't open file for writing 

当在vi编辑器中输入:saveas <path/to/file> 或者:wq都显示该错误,

经调试,:wq后加文件的格式有错误,应当是:wq helloworld.c

:saveas <path/to/file>,另存为的问题也在于文件格式,:saveas /Users/wdy/Downloads/a.txt或者:w /Users/wdy/Downloads/a.txt

0 0