public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
From: Bill Longman <bill.longman@gmail.com>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] Re: Paste into vim keeping indention or original?
Date: Fri, 28 Jan 2011 14:42:53 -0800	[thread overview]
Message-ID: <4D43466D.2040602@gmail.com> (raw)
In-Reply-To: <4D432105.3000904@badapple.net>

On 01/28/2011 12:03 PM, kashani wrote:
> 
> You might like one too.
> 
> cmap w!! w !sudo  tee % >/dev/null
> 
> When you forget to sudo vi you can use w!! which pipes writing the file
> though sudo. You get some term gunk, but it does work.

That's what "screen" and PS1 are for....



  reply	other threads:[~2011-01-28 22:44 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-01-27 19:07 [gentoo-user] Paste into vim keeping indention or original? Mark Knecht
2011-01-27 19:22 ` [gentoo-user] " Mark Knecht
2011-01-27 19:28   ` Mike Gilbert
2011-01-27 20:11     ` Petri Rosenström
2011-01-27 20:53     ` YoYo Siska
2011-01-28 17:08       ` Bill Longman
2011-01-28 20:03         ` kashani
2011-01-28 22:42           ` Bill Longman [this message]
2011-01-28 20:20         ` David Abbott
2011-01-27 22:38 ` James

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4D43466D.2040602@gmail.com \
    --to=bill.longman@gmail.com \
    --cc=gentoo-user@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox