环境信息:
Ubuntu 16.04
VIM - Vi IMproved 7.4 (2013 Aug 10, compiled Nov 24 2016 16:44:48)
遇到问题:
在使用vim时,没有用sudo进入,导致保存时权限不足。
[No write since last change]
/bin/bash: wq: command not found
shell returned 127
Press ENTER or type command to continue
解决方法:
命令:
:w !sudo tee % > /dev/null