On Fri, Jul 13, 2012 at 4:39 PM, Brian Christiansen <gaiji...@gmail.com> wrote:
> I personally love the command to write out changes in vim when you didn't
> open the file with privileges.
> http://www.commandlinefu.com/commands/view/1204/save-a-file-you-edited-in-vim-without-the-needed-permissions


My .vimrc contains this:

    cmap w!! w !sudo tee % >/dev/null

So when `w!` doesn't work, `w!!` will :)

--j

/*
PLUG: http://plug.org, #utah on irc.freenode.net
Unsubscribe: http://plug.org/mailman/options/plug
Don't fear the penguin.
*/

Reply via email to