vi コマンド
vi
http://feb19.jp/blog/archives/000226.php
viでsudo忘れて、保存できない時の対処方
下記urlを参照
http://dev.koba206.com/?p=298
:w
E45: 'readonly' option is set (add ! to override)
:w !sudo tee %
Press ENTER or type command to continue
W12: Warning: File "Targets" has changed and the buffer was changed in Vim as well
See ":help W12" for more info.
[O]K, (L)oad File:
:q!