From owner-freebsd-questions@FreeBSD.ORG Thu Jul 10 09:37:23 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 60DA61065674 for ; Thu, 10 Jul 2008 09:37:23 +0000 (UTC) (envelope-from alt127@SDF.lonestar.org) Received: from mx-out.forthnet.gr (mx-out.forthnet.gr [193.92.150.104]) by mx1.freebsd.org (Postfix) with ESMTP id DAAD18FC0C for ; Thu, 10 Jul 2008 09:37:22 +0000 (UTC) (envelope-from alt127@SDF.lonestar.org) Received: from mx-av-04.forthnet.gr (mx-av.forthnet.gr [193.92.150.27]) by mx-out-05.forthnet.gr (8.14.3/8.14.3) with ESMTP id m6A9bKAu022914; Thu, 10 Jul 2008 12:37:20 +0300 Received: from MX-IN-02.forthnet.gr (mx-in-02.forthnet.gr [193.92.150.185]) by mx-av-04.forthnet.gr (8.14.3/8.14.3) with ESMTP id m6A9bKCQ009030; Thu, 10 Jul 2008 12:37:20 +0300 Received: from pc7388.sa.forthnet.prv (pc7388.sa.forthnet.prv [10.2.31.18]) by MX-IN-02.forthnet.gr (8.14.3/8.14.3) with ESMTP id m6A9bCEM021347; Thu, 10 Jul 2008 12:37:17 +0300 Message-ID: <4875D829.8030907@SDF.lonestar.org> Date: Thu, 10 Jul 2008 12:36:41 +0300 From: alt127 User-Agent: Thunderbird 2.0.0.12 (X11/20080508) MIME-Version: 1.0 To: EdwardKing References: <009301c8e26e$934a5020$3f83a8c0@neusofteaf5839> In-Reply-To: <009301c8e26e$934a5020$3f83a8c0@neusofteaf5839> Content-Type: text/plain; charset=GB2312 Content-Transfer-Encoding: 7bit Cc: freebsd-questions@freebsd.org Subject: Re: how to set vi line number? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 10 Jul 2008 09:37:23 -0000 hi, for line number try "set number" for syntax highlighting try vim with "syntax on" if you don`t have vim try pkg_add or ports... ^/ p.s. I suppose this was a generic question out of the list`s scope. :-) EdwardKing wrote: > my first question is whether vi can show line number,such as 1: 2: 3:? > my second question is whether vi support c syntax,such as show "#include" with other different color? > > How to modify to realize above function? > thanks > > > ---------------------------------------------------------------------------------------------- > Confidentiality Notice: The information contained in this e-mail and any accompanying attachment(s) is intended only for the use of the intended recipient and may be confidential and/or privileged of Neusoft Group Ltd., its subsidiaries and/or its affiliates. If any reader of this communication is not the intended recipient, unauthorized use, forwarding, printing, storing, disclosure or copying is strictly prohibited, and may be unlawful. If you have received this communication in error, please immediately notify the sender by return e-mail, and delete the original message and all copies from your system. Thank you. > ----------------------------------------------------------------------------------------------- > > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org" >