From owner-freebsd-questions Thu Feb 10 23:44:53 2000 Delivered-To: freebsd-questions@freebsd.org Received: from dart.sr.se (dart.SR.SE [193.12.91.98]) by builder.freebsd.org (Postfix) with ESMTP id 9DBAD46BB for ; Thu, 10 Feb 2000 23:44:50 -0800 (PST) Received: from honken.sr.se ([134.25.128.27]) by dart.sr.se (8.9.3/8.9.3) with ESMTP id IAA94392; Fri, 11 Feb 2000 08:44:32 +0100 (CET) (envelope-from gunnar@pluto.sr.se) Received: from pluto.sr.se (pluto.SR.SE [134.25.193.91]) by honken.sr.se (8.9.3/8.9.3) with ESMTP id IAA43094; Fri, 11 Feb 2000 08:44:31 +0100 (CET) (envelope-from gunnar@pluto.sr.se) Received: (from gunnar@localhost) by pluto.sr.se (8.9.3/8.9.3) id IAA72464; Fri, 11 Feb 2000 08:44:31 +0100 (CET) (envelope-from gunnar) Date: Fri, 11 Feb 2000 08:44:31 +0100 From: Gunnar Flygt To: R Joseph Wright Cc: FreeBSD Questions Subject: Re: c-mode in vi Message-ID: <20000211084431.C70178@sr.se> Reply-To: Gunnar Flygt References: <38A36D58.3EC41702@nwlink.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0i In-Reply-To: <38A36D58.3EC41702@nwlink.com>; from rjoseph@nwlink.com on Thu, Feb 10, 2000 at 06:00:56PM -0800 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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