一個懶惰又不務正業的 .NET Core 工程師筆記...
● 使用:w!強制覆寫
:w!
● 先用:set noreadonly,再下:w覆寫
:set noreadonly
:w
● 使用:w !sudo tee %
:w !sudo tee %
[Stack Exchange] Using vim to force edit a file when you opened without permissions