From owner-freebsd-questions@FreeBSD.ORG Thu Jul 10 09:30:29 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 017E51065671 for ; Thu, 10 Jul 2008 09:30:29 +0000 (UTC) (envelope-from sachidananda.urs@gmail.com) Received: from yx-out-2324.google.com (yx-out-2324.google.com [74.125.44.29]) by mx1.freebsd.org (Postfix) with ESMTP id AFD468FC28 for ; Thu, 10 Jul 2008 09:30:28 +0000 (UTC) (envelope-from sachidananda.urs@gmail.com) Received: by yx-out-2324.google.com with SMTP id 8so871131yxb.13 for ; Thu, 10 Jul 2008 02:30:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:cc:in-reply-to:mime-version:content-type:references; bh=JONCmNAsxZ+sLQYaDkSsLPoTCSNJjx2QynmsOtjfiKU=; b=pu4De5G3WL7PBGN9G02lWSs3fVXW7plpwQRPpDf60QiM2I5afrDxuvaCQHcubpJNUm qPSLZI8i21eTRN0zjQJLnyY5vWsz7XwVwfJyRmG6KoQyGt9fj6w2dNSEAAUvtQIpNbep B0p6bd04orUSNmEDBs8FtdFKddHK0uEiCLiXE= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version :content-type:references; b=mdC3lD1Je4KX6gOkODOwgahvYAd0795Wjy47HIviqKBB2l7V900oMMcGHRHJxsLmmD Lc/dTn8VLRsnUBJ996LR4QioImD2d7VH5alG6M5mUMjjzv15ymKfn6T+KrKkUfbykDZY sN76Anm4ySVxrbsoEol7wUihaCWEFmWDKclRk= Received: by 10.151.155.21 with SMTP id h21mr14151215ybo.142.1215682227962; Thu, 10 Jul 2008 02:30:27 -0700 (PDT) Received: by 10.150.205.7 with HTTP; Thu, 10 Jul 2008 02:30:27 -0700 (PDT) Message-ID: Date: Thu, 10 Jul 2008 15:00:27 +0530 From: "sac u" To: EdwardKing In-Reply-To: <009301c8e26e$934a5020$3f83a8c0@neusofteaf5839> MIME-Version: 1.0 References: <009301c8e26e$934a5020$3f83a8c0@neusofteaf5839> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Content-Filtered-By: Mailman/MimeDel 2.1.5 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:30:29 -0000 On 7/10/08, 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? To list line numbers. :set nu I don't think vi has syntax highlighting, but vim does have it. sac.