[wellylug] Staircase effect in vim...
Cameron Hart
sexy at cam.rebel.net.nz
Thu Feb 19 00:36:20 NZDT 2004
But then you have to forsake lovely autoindent! :)
Try using vim's paste mode. In vim type
:set paste
go into insert mode and paste your text.
Paste mode should turn off all indenting and other features which can mess up
pasted text. When you have finished pasting, go out of insert mode, and type
:set nopaste
refer to ":help paste" in vim, and ":help set" if need be.
--
Cameron
On Wed, 18 Feb 2004 23:56, Richard Hector wrote:
> On Wed, Feb 18, 2004 at 10:51:45PM +1300, Enkidu wrote:
> > My Linux machine runs Debian, and I ssh into it using putty. When I
> > cut and paste from Windows into a vim session in insert mode, I get an
> > interesting staircase effect where each successive line has an extra
> > tab added to it. By the end of a thousands lines or so, each line is
> > preceded by a thousand tabs!
> >
> > This turned a 26Kb file into a 1.2MB monster.
> >
> > Does anyone know why this happens and how to stop it?
>
> Probably autoindent mode. You can turn it off in your vimrc file,
> wherever that is. I turn it off in /etc/vim/vimrc, but I guess you can
> have a .vimrc as well. Just comment it out with ".
>
> Richard
More information about the wellylug
mailing list