> :set paste
>
> then paste your text, then
>
> :set nopaste
Hmm.. That's pretty neat. I always used :r!cat to paste stuff.
--
Dwayne C. Litzenberger - [EMAIL PROTECTED]
pgprMoSmopuP6.pgp
Description: PGP signature
Andre Berger wrote:
> set nopaste
> set pastetoggle=
>
> I only toggle to paste mode if necessary. I think I found this one in
> Sven Guckes's vim tips.
The problem I've always had with this is that I can press f11 to enter
paste mode even if I'm already in insert mode. Handy. But I can only
pr
* Karsten M. Self , 2001-05-06 01:57 +0200:
> on Sat, May 05, 2001 at 08:27:19AM -0400, MaD dUCK ([EMAIL PROTECTED]) 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 smartind
also sprach Karsten M. Self (on Sat, 05 May 2001 11:01:11AM -0700):
> Cool! That I did not know.
> ...now, what's a useful key to bind that to
map ^V :set paste!^M
but that's because i don't need that visual stuff anyway.
martin; (greetings from the heart of the sun.)
\ e
on Sat, May 05, 2001 at 08:27:19AM -0400, MaD dUCK ([EMAIL PROTECTED]) 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:
>
>
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
martin; (greetings from
--- mdevin <[EMAIL PROTECTED]> wrote:
> When I use vim to edit a file, then copy and paste some text into
> this
> file, the text gets automatically indented more than it should. Take
> the following example:
> Edit an empty file with vim, then try an paste in the following text:
> !## NETSCAPE
>
On Sat, 5 May 2001, mdevin wrote:
> When I use vim to edit a file, then copy and paste some text into this
> file, the text gets automatically indented more than it should.
:set noai
(ai=auto-indent) should work
HTH,
Romain
On Sat, May 05, 2001 at 09:20:15PM +1000, mdevin wrote:
> When I use vim to edit a file, then copy and paste some text into this
> file, the text gets automatically indented more than it should. Take
This is not Vim specific. This will happen in any Vi where you have
autoindent turned on.
On Sat, May 05, 2001 at 09:20:15PM +1000, mdevin wrote:
> When I use vim to edit a file, then copy and paste some text into this
> file, the text gets automatically indented more than it should. Take
> the following example:
[snip]
:set noautoindent
--
Eric G. Miller
10 matches
Mail list logo