Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 10 Jul 2008 15:00:27 +0530
From:      "sac u" <sachidananda.urs@gmail.com>
To:        EdwardKing <zhangsc@neusoft.com>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: how to set vi line number?
Message-ID:  <adfc85de0807100230x2f4bd3c3vbb4261668568f900@mail.gmail.com>
In-Reply-To: <009301c8e26e$934a5020$3f83a8c0@neusofteaf5839>
References:  <009301c8e26e$934a5020$3f83a8c0@neusofteaf5839>

next in thread | previous in thread | raw e-mail | index | archive | help
On 7/10/08, EdwardKing <zhangsc@neusoft.com> 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.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?adfc85de0807100230x2f4bd3c3vbb4261668568f900>