[CentOS] vi defaults in 6.x

Sat Aug 18 16:31:21 UTC 2012
Daniel De Marco <ddm at bartol.udel.edu>

* Les Mikesell <lesmikesell at gmail.com> [08/16/2012 14:23]:
> When I use copy/paste text into a window running vi, if there is a
> single line starting with '#', in the pasted content, it adds a # to
> all subsequent lines and indents each an additional level.  Is there
> some way to eliminate this bizarre behavior, preferably globally and
> permanently so I don't have to repeat some change for every
> machine/user where I might log in?

to avoid this behavior during paste, just do:
:set paste
just before pasting.