Re: vi defaults in 6.x

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



* Les Mikesell <lesmikesell@xxxxxxxxx> [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.

Daniel.
_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos


[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux