[CentOS] vi defaults in 6.x

Les Mikesell lesmikesell at gmail.com
Sun Aug 19 16:12:46 UTC 2012


On Sun, Aug 19, 2012 at 2:31 AM, Gordon Messmer <yinyang at eburg.com> wrote:
> On 08/16/2012 04:55 PM, SilverTip257 wrote:
>> vi is generally a symlink to vim these days.
>
> Actually, it's a shell alias.  And then, only if "vim" is installed,
> which it isn't in some configurations.  IIRC, desktop systems have him
> by default, but server installations do not.

The systems where I'd be pasting script contents mostly have the
software development package group installed.  The aliasing explains
why it happens seemingly randomly since I'd sometimes have root's
environment, sometimes not.   In any case, the ':set paste" mode
behavior is what I want. I don't mind syntax highlighting but it seems
extremely bizarre for something pretending to be vi with a default
setting to ever, under any conditions, insert something you didn't
type.

-- 
  Les Mikesell
    lesmikesell at gmail.com



More information about the CentOS mailing list