[CentOS] vi defaults in 6.x
John Doe
jdmls at yahoo.com
Fri Aug 17 10:22:36 UTC 2012
From: Les Mikesell <lesmikesell at gmail.com>
> 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?
If you do not want to change the defaults, you could temporarily call vim
without the initializations:
vim -u NONE ...
JD
More information about the CentOS
mailing list