Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 10 Jul 2008 12:36:41 +0300
From:      alt127 <alt127@SDF.lonestar.org>
To:        EdwardKing <zhangsc@neusoft.com>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: how to set vi line number?
Message-ID:  <4875D829.8030907@SDF.lonestar.org>
In-Reply-To: <009301c8e26e$934a5020$3f83a8c0@neusofteaf5839>
References:  <009301c8e26e$934a5020$3f83a8c0@neusofteaf5839>

next in thread | previous in thread | raw e-mail | index | archive | help
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"
>   




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