Re: [Lug-Nuts] vi question

From: Andy Wergedal (awerg@bigfoot.com)
Date: Mon Feb 14 2000 - 12:25:17 PST


There are a few ways to do turn on syntax highlighting.

1. :syn on
        turns on syntax hightlighting
2. :filetype on
        automatically sets the syntax highlighting to the file type
        index.html - html syntax
        bash.sh - bash syntax
        clear.h - C/C++ syntax
        hello.pl - perl syntax

there are lots ways to do it.

-- Andy

On Mon, 14 Feb 2000, Webb Sprague wrote:

> Can anyone tell me how to set up vi to highlight
> syntax for Perl? I have found my
> "/usr/lib/share/vim/syntax/" file, but I cant't figure
> out how to link to it properly. I have also looked at
> "Sven's rc" at vim.org, but it is too full of other
> stuff for me to dig through.
>
> Thanks in advance.
> __________________________________________________
> Do You Yahoo!?
> Talk to your friends online with Yahoo! Messenger.
> http://im.yahoo.com
> **********************************************************
> * Sacramento Linux Users Group Mailing List
> *
> * Unsubscribe: Send a message to majordomo@saclug.org
> * With 'unsubscribe lug-nuts' in the body
> *
> * http://www.saclug.org
>

**********************************************************
* Sacramento Linux Users Group Mailing List
*
* Unsubscribe: Send a message to majordomo@saclug.org
* With 'unsubscribe lug-nuts' in the body
*
* http://www.saclug.org



This archive was generated by hypermail 2b29 : Fri Feb 25 2000 - 14:29:12 PST