Fork me on GitHub

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

posted on 2018-01-29 14:30  pengyingh  阅读(1711)  评论(0编辑  收藏  举报

导航