[wellylug] Staircase effect in vim...

Richard Hector rhector at paradise.net.nz
Wed Feb 18 23:56:53 NZDT 2004


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