how to set vi line number?

sac u sachidananda.urs at gmail.com
Thu Jul 10 09:30:29 UTC 2008


On 7/10/08, EdwardKing <zhangsc at 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.


More information about the freebsd-questions mailing list