News for hackers. Stuff that matters.
Re:The Fuck – Correct your previous console command by dogecoinbase on Friday April 17, 2015 @07:04PM (#9397679)
Probably my biggest overall timesaver has been:

   :w !sudo tee %
If you neglected to sudo before making your changes.
Re:The Fuck – Correct your previous console command by mattikus on Friday April 17, 2015 @08:24PM (#9397891)
I've had this in my vimrc for years:

   " Let :w!! gain sudo privileges without closing and reopening vim
   cmap w!! w !sudo tee % >/dev/null
Re:The Fuck – Correct your previous console command by mkagenius on Saturday April 18, 2015 @03:02AM (#9398565)
Its much more easier to remember when you know how that actually works. Here is link explaining how that actually works:

http://stackoverflow.com/questions/2600783/how-does-the-vim-...