[OT] Josh's secret

justin justin at justinhileman.info
Fri Jul 13 18:03:52 MDT 2012

On Fri, Jul 13, 2012 at 4:39 PM, Brian Christiansen <gaijin03 at 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 :)


More information about the PLUG mailing list