[CentOS] vi defaults in 6.x
SilverTip257
silvertip257 at gmail.com
Thu Aug 16 23:55:30 UTC 2012
+1 for .vimrc config files
vi is generally a symlink to vim these days.
@Les,
I've seen the auto-comment behavior you speak of. You may want to set
formatoptions [0] in your .vimrc
[0] http://vimdoc.sourceforge.net/htmldoc/change.html#fo-table
@Joseph:
You have autoindent specified twice - once in its abbreviated form and
then the long version.
set noai
set noautoindent
---~~.~~---
Mike
// SilverTip257 //
On Thu, Aug 16, 2012 at 3:08 PM, Joseph Spenner <joseph85750 at yahoo.com> wrote:
>
> ________________________________
> > 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
> _______________________________________________
> CentOS mailing list
> CentOS at centos.org
> http://lists.centos.org/mailman/listinfo/centos
More information about the CentOS
mailing list