Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:

Vi I(M)proved supposedly provides content based highlighting for perl, but I can't get it to work. It compiles correctly, but then when I bring up a perl script nothing happens. Can anyone help?

Output of "make install" below so as to not clutter up SOPW: Thanks for any help

Replies are listed 'Best First'.
Re: Perl with VIM
by dempa (Friar) on Jun 29, 2000 at 04:05 UTC
    Short answer:   :syntax on   in command mode.

    Judging by your "make install" output (which happened to get posted in a separate thread), you're on a Solaris box. You have choosen MOTIF as your gvim GUI. Syntax hilighting looks a bit better in gvim IMHO, so you might want to try that. Well, I might aswell post my $HOME/.vimrc file too:

    version 5.0 set nocompatible let cpo_save=&cpo set cpo=B map! <S-Insert> <MiddleMouse> map Q gq map <S-Insert> <MiddleMouse> syntax on set background=light set guifont=6x13 highlight Normal guibg=white guifg=black set guioptions-=rtT set t_me=ESC[0;0;37m set t_mr=ESC[0;1;33;44m set t_md=ESC[1;33m set t_se=ESC[1;37;40m set t_so=ESC[1;32;45m set t_ue=ESC[0;1;37m set t_us=ESC[1;32m
    Where ESC is to be replaced by the "real" ESC code ofcourse.

    One of VIM's greatest features is the rich "online" help. It explains everything about everything. You can access it by typing :h <searchtext> in command mode.

Re: Perl with VIM
by chromatic (Archbishop) on Jun 29, 2000 at 03:52 UTC
    Did you try <ESC>:syntax on? That works for me.