[CentOS] vi defaults in 6.x

Thu Aug 16 19:08:46 UTC 2012
Joseph Spenner <joseph85750 at yahoo.com>

________________________________
 > From: Les Mikesell <lesmikesell at gmail.com>
> To: CentOS mailing list <centos at centos.org> 
> Sent: Thursday, August 16, 2012 11:23 AM
> Subject: [CentOS] vi defaults in 6.x
 
> 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?
>
> -- 
 > Les Mikesell

===
To make vi less annoying, I always create a .vimrc in the homedir of the account in question.  It contains:

syntax off
set nohlsearch
set noincsearch
:let loaded_matchparen = 1
set noai
set paste
set mouse=
set noautoindent

Hope this helps!

______________________________________________________________________
If life gives you lemons, keep them-- because hey.. free lemons.
"♥ Sticker" fixer:  http://microflush.org/stuff/stickers/heartFix.html