Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 3 May 2003 19:26:04 -0700 (PDT)
From:      Viktor Lazlo <viktorlazlo@telus.net>
To:        William O'Higgins <william.ohiggins@utoronto.ca>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: vim isn't working as expected
Message-ID:  <20030503192238.C36781-100000@a3ij25fvy80j.bc.hsia.telus.net>
In-Reply-To: <20030503210831.A982@sillyrabbi>

next in thread | previous in thread | raw e-mail | index | archive | help


On Sat, 3 May 2003, William O'Higgins wrote:

> I am a new user of FreeBSD migrating from Red Hat Linux.  There are a
> few differences that I am having trouble with.
>
> vi - my editor of choice, and it doesn't work in the ways I expect it
> to.  I am used to vi being aliased to vim (which I have done in FreeBSD)
> and having syntax highlighting, arrow keys, and a tell-tale line at the
> bottom of the xterm to remind me which mode I'm in, which line and
> position, and how much file I'm looking at.  All these things are gone in
> FreeBSD.  Could someone tell me what I'm missing?  Thanks.

Oops, my bad! I hadn't noticed you said you already had aliased vi to vim
until I had already hit send!

To enable syntax highlighting enter:

:syntax on

at the vim/ex command line.

For a status line enter:

:set showmode

To enable these automatically you need to set up a .vimrc file, examples
can be found in

/usr/local/share/vim

and

/usr/doc/share/examples/vim

Cheers,

Viktor




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030503192238.C36781-100000>