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.


In reply to Re: Perl with VIM by dempa
in thread Perl with VIM by Anonymous Monk

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.