Gentoo Archives: gentoo-user

From: Bill Longman <bill.longman@×××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Re: Paste into vim keeping indention or original?
Date: Fri, 28 Jan 2011 22:44:48
Message-Id: 4D43466D.2040602@gmail.com
In Reply to: Re: [gentoo-user] Re: Paste into vim keeping indention or original? by kashani
1 On 01/28/2011 12:03 PM, kashani wrote:
2 >
3 > You might like one too.
4 >
5 > cmap w!! w !sudo tee % >/dev/null
6 >
7 > When you forget to sudo vi you can use w!! which pipes writing the file
8 > though sudo. You get some term gunk, but it does work.
9
10 That's what "screen" and PS1 are for....