From owner-freebsd-questions Fri Feb 11 1:48:36 2000 Delivered-To: freebsd-questions@freebsd.org Received: from mail.telekabel.nl (arnhem.telekabel.nl [194.134.132.130]) by builder.freebsd.org (Postfix) with ESMTP id 72EBF46B3 for ; Fri, 11 Feb 2000 01:48:32 -0800 (PST) Received: from jollem.com (c187104187.telekabel.chello.nl [212.187.104.187]) by mail.telekabel.nl (8.8.8/8.8/EuroNet) with ESMTP id KAA09190; Fri, 11 Feb 2000 10:48:13 +0100 (MET) Message-ID: <38A3DADD.FE8ED7A4@jollem.com> Date: Fri, 11 Feb 2000 10:48:13 +0100 From: Ernst de Haan Organization: Jollem X-Mailer: Mozilla 4.7 [en] (X11; I; FreeBSD 3.4-STABLE i386) X-Accept-Language: en, nl MIME-Version: 1.0 To: Gunnar Flygt Cc: R Joseph Wright , FreeBSD Questions Subject: Re: c-mode in vi References: <38A36D58.3EC41702@nwlink.com> <20000211084431.C70178@sr.se> Content-Type: multipart/mixed; boundary="------------026AE81671BF9C45391562B2" Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG This is a multi-part message in MIME format. --------------026AE81671BF9C45391562B2 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Do you have a .vimrc file in your homedir? It should contain: set syntax=on My 2cts. Ernst 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 --------------026AE81671BF9C45391562B2 Content-Type: text/x-vcard; charset=us-ascii; name="ernst.vcf" Content-Transfer-Encoding: 7bit Content-Description: Card for Ernst de Haan Content-Disposition: attachment; filename="ernst.vcf" begin:vcard n:de Haan;Ernst tel;fax:+31 (0)26 3645634 tel;work:+31 (0)26 3623895 x-mozilla-html:FALSE url:http://www.znerd.demon.nl/ org:Jollem adr:;;Rozendaalselaan 35;Velp;GLD;6881 KZ;Netherlands version:2.1 email;internet:ernst@jollem.com title:Java Architect fn:Ernst de Haan end:vcard --------------026AE81671BF9C45391562B2-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message