[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Stopping vim from auto-indenting



* Karsten M. Self <kmself@ix.netcom.com>, 2001-05-06 01:57 +0200:
> on Sat, May 05, 2001 at 08:27:19AM -0400, MaD dUCK (madduck@madduck.net) wrote:
> > also sprach mdevin (on Sat, 05 May 2001 09:20:15PM +1000):
> > > How do you stop this from happening?
> > 
> > actually, set noautoindent won't cut it if you have smartindent or
> > cindent set. however, vim has a feature:
> > 
> > :set paste
> > 
> > then paste your text, then
> > 
> > :set nopaste
> 
> Cool!  That I did not know.
> 
> ...now, what's a useful key to bind that to....

set nopaste
set   pastetoggle=<f11>

I only toggle to paste mode if necessary. I think I found this one in
Sven Guckes's vim tips.

A. B.                                       [andre.berger@topmail.de]

Attachment: pgpOI6ghmjaub.pgp
Description: PGP signature


Reply to: