问题描述: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

相关文章:

  • 2021-04-18
  • 2022-12-23
  • 2022-01-13
  • 2021-08-16
  • 2021-09-14
  • 2022-12-23
  • 2022-01-08
  • 2021-05-26
猜你喜欢
  • 2022-12-23
  • 2021-11-26
  • 2022-12-23
  • 2021-12-12
  • 2021-08-17
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案