From owner-freebsd-questions Fri Feb 11 5:57:16 2000 Delivered-To: freebsd-questions@freebsd.org Received: from enterweb.enterit.com (enterweb.enterit.com [209.45.199.22]) by builder.freebsd.org (Postfix) with ESMTP id B8EA546BA for ; Fri, 11 Feb 2000 05:57:10 -0800 (PST) Received: from KWAN [209.45.199.38] by enterweb.enterit.com with ESMTP (SMTPD32-5.04) id A52125E0108; Fri, 11 Feb 2000 08:56:49 DT Message-Id: <4.2.0.58.20000211085846.00a4c3d8@mail.enterit.com> X-Sender: notjames@mail.pseudonet.org X-Mailer: QUALCOMM Windows Eudora Pro Version 4.2.0.58 Date: Fri, 11 Feb 2000 09:04:21 -0500 To: Gunnar Flygt , R Joseph Wright From: Jim C Subject: Re: c-mode in vi Cc: FreeBSD Questions In-Reply-To: <20000211084431.C70178@sr.se> References: <38A36D58.3EC41702@nwlink.com> <38A36D58.3EC41702@nwlink.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG I had to make sure I was using vim and not vi. I don't believe vi has all the capabilities that vim has. I simply symlinked vi to vim and made sure I have my $HOME/.vimrc file properly configured. Jim At 08.44 11.02.00 +0100, Gunnar Flygt wrote: >On Thu, Feb 10, 2000 at 06:00:56PM -0800, R Joseph Wright wrote: > > Awhile back I was using vi to write c++ programs and it had the cool > > feature of going into "c-mode" automatically whenever I entered [vi > > file.cpp]. It would do automatic indentation for me. > > About a month ago, I reinstalled my system, and vi no longer does this. > > I'm pretty sure I was using vim or vile, but i've tried vim, vile, > > elvis, and nvi and I can't get this feature to work anymore. Is there a > > script I can use to enable this feature? > > Also, I like the feel of vim but the backspace and delete keys are > > switched around. I can't use it like that. Anyone know how to fix > > that? > >If you look in the /usr/local/share/vim directory you can see that there >are a new subdirectory named after the version of vin you use (at least >that was the case for me) I did symlinks to the /usr/local/share/vim for >all the items in the new directory. Then it started working. > >Maybe this is something for the vim port maintainer to look at. > > > -- > > R Joseph Wright > > > > I was getting out of a...I believe I was > > getting out of something. Bill Callahan. > > > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > > with "unsubscribe freebsd-questions" in the body of the message > >-- > __o >regards, Gunnar ---_ \<,_ >email: flygt@sr.se ---- (_)/ (_) > > >To Unsubscribe: send mail to majordomo@FreeBSD.org >with "unsubscribe freebsd-questions" in the body of the message To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message