From owner-freebsd-questions@FreeBSD.ORG Sat May 3 19:26:27 2003 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1F69B37B401 for ; Sat, 3 May 2003 19:26:27 -0700 (PDT) Received: from priv-edtnes15-hme0.telusplanet.net (outbound04.telus.net [199.185.220.223]) by mx1.FreeBSD.org (Postfix) with ESMTP id 675F343FA3 for ; Sat, 3 May 2003 19:26:26 -0700 (PDT) (envelope-from viktorlazlo@telus.net) Received: from [192.168.1.100] ([207.6.229.118]) by priv-edtnes15-hme0.telusplanet.netESMTP <20030504022626.SRNV19213.priv-edtnes15-hme0.telusplanet.net@[192.168.1.100]>; Sat, 3 May 2003 20:26:26 -0600 Date: Sat, 3 May 2003 19:26:04 -0700 (PDT) From: Viktor Lazlo X-X-Sender: viktorlazlo@a3ij25fvy80j.bc.hsia.telus.net To: William O'Higgins In-Reply-To: <20030503210831.A982@sillyrabbi> Message-ID: <20030503192238.C36781-100000@a3ij25fvy80j.bc.hsia.telus.net> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII cc: freebsd-questions@freebsd.org Subject: Re: vim isn't working as expected X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 04 May 2003 02:26:27 -0000 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