[oclug]VIM pasting oddities

Ross Jordan rjordan at student.math.uwaterloo.ca
Thu Nov 14 12:42:44 EST 2002


> 
> I'm sure this has been irritating others.  When I paste into vim, I get
> all manner of fsckups happening to my pasted text.  If I have an indented
> line, each successive line is additionally indented (ie: one indent will
> give two indents on the next line, three on the next and so on).
> Sometimes, the # at the start of a shebang line or a comment will be
> replicated on each successive line as well.  Very annoying.  The old vi
> didn't seem to do this (I'm glad I kept it installed).  Is there an
> incantation to fix this?
I've noticed it on occasion, and had always attributed it to
so called "smart" vim settings, like cindent and similar.

If I disable my vimrc, I don't have the problems.

It is annoying though, so I'd be interested in a reasonable
solution.

-Ross




More information about the OCLUG mailing list