Re: vi defaults in 6.x

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



________________________________
 > From: Les Mikesell <lesmikesell@xxxxxxxxx>
> To: CentOS mailing list <centos@xxxxxxxxxx> 
> Sent: Thursday, August 16, 2012 11:23 AM
> Subject:  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
_______________________________________________
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