Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

How to turn off color in the vi?

0 views
Skip to first unread message

Yi Jin

unread,
May 28, 2003, 2:05:15 PM5/28/03
to
How do one turn off the color in the vi editor? It is
getting annoying ..

Thanks.

YJ

VP

unread,
May 28, 2003, 2:12:07 PM5/28/03
to

:help syntax

Peter T. Breuer

unread,
May 28, 2003, 2:30:14 PM5/28/03
to
Yi Jin <yi...@wam.umd.edu> wrote:
> How do one turn off the color in the vi editor? It is
> getting annoying ..

either edit on a non-color terminal (setenv TERM vt100, or whatever),
or :set syntax blah blah.

Peter

Someone

unread,
May 28, 2003, 5:45:43 PM5/28/03
to
Yi Jin wrote:
> How do one turn off the color in the vi editor? It is
> getting annoying .

Well, the vi editor doesn't have colors. Its purely a
two-color editor (background, foreground) determined by
the terminal (xterm, etc).

So, if you're getting multiple colors, you're not using
vi. If you're using vim, the solution is:

:syn off

If you want to make that effective all the time, put it
into your <.vimrc>. In fact, you normally have to have

:syn on

somewhere for syntax highlighting to take effect. So
an alternative solution is to check your own <.vimrc>
and then system-wide <vimrc> and delete :syn on .

Regards,
Chip Campbell


--
Charles E. Campbell, Jr
PGP public key: http://www.erols.com/astronaut/pgp.html

0 new messages