日积月累 1)在直接使用vim命令编辑文件时 因为没有加sudo,保存时报错:E45: ‘readonly’ option is set (add ! to override) 不用退出编辑界面,输入:w !sudo tee % :w – write !sudo – call shell sudo command tee – the output of write (:w) command is redirected using tee % – current file name