[CentOS] vi defaults in 6.x

Fri Aug 17 00:57:59 UTC 2012
Phil Dobbin <bukowskiscat at gmail.com>

SilverTip257 wrote:

> +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

Also, unless you want it to act like vi, use `set nocompatible` so that
it is then full vim & then your vimrc will have full effect.

Cheers,

  Phil...

-- 
currently (ab)using
CentOS 6.3, Debian Squeeze, Fedora Beefy, OS X Snow Leopard, Ubuntu Precise