
vim test.c,输入代码后esc,冒号wq,底部提示
“test.c” E212:Can't open file for writing
Press ENTER or type command to continue

vim test.c,输入代码后esc,冒号wq,底部提示
“test.c” E212:Can't open file for writing
Press ENTER or type command to continue
应该是你的目录这个文件权限的问题把,没有可写权限,换成root试试或者修改你要操作的文件权限