[wellylug] Staircase effect in vim...

Ewen McNeill wellylug at ewen.mcneill.gen.nz
Thu Feb 19 06:20:47 NZDT 2004


In message <94d630hrqd4n0r9f8htak3sapf18h475dc at 4ax.com>, Enkidu writes:
>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!

Disable auto-indent when pasting text.  gvim manages to do this
automatically when receiving a paste; for vim the easiest way to turn
off all the stuff that interferes with pasting is "set paste", and to
turn it all back on again "set nopaste".

Ewen




More information about the wellylug mailing list