News for hackers. Stuff that matters.
Re:Vim Tips For Intermediate Users by 1_player on Wednesday May 20, 2015 @12:37AM (#9574704)
The most useful shortcut I have in my .vimrc is the ability to "sudo save":

    command W :execute ':silent w !sudo tee % > /dev/null' | :edit!
No more exiting vim to start it again with sudo.
Re:Vim Tips For Intermediate Users by MetaCosm on Wednesday May 20, 2015 @12:59AM (#9574757)
That is one of the features I get from the https://github.com/tpope/vim-eunuch plugin (SudoWrite).
Re:Vim Tips For Intermediate Users by realyze on Wednesday May 20, 2015 @12:41AM (#9574716)
Huh. Well I kinda consider that `sudo` annoyance a feature. It tells me to think twice before potentially messing up badly. :-)
Re:Vim Tips For Intermediate Users by 1_player on Wednesday May 20, 2015 @11:35AM (#9577006)
When I use :W is because I've been editing some system configuration files.. I know what I'm doing.

And messing up is half the fun of systems administration :)

Re:Vim Tips For Intermediate Users by Twirrim on Wednesday May 20, 2015 @01:11AM (#9574778)
Likewise, but I have the alias added so that when I discover I should have edited under sudo, I don't have to lose my work.