News

New paper!

Wednesday, December 13, 2017

Vim: Overwrite Read-only file


  • Change a file as usual
  • Try to exit with :w
  • Error message tells you the file is read-only. Then type :w !sudo tee %
  • Enter
  • Exit with :q!


http://www.geekyboy.com/archives/629