vi and perl code highlight

Luis M lemsx1 at gmail.com
Wed Mar 1 18:43:04 UTC 2006


On 2/27/06, Gallagher, Tim (NE) <Tim.Gallagher at gd-ais.com> wrote:
> Does anyone know how to enable code highlighting for Perl using VI???

You can't highlight code in vi. Do you mean vim?

in ~/.vimrc put the following lines:

" Switch syntax highlighting on, when the terminal has colors
if &t_Co > 2 || has("gui_running")
  syntax on
endif





--
----)(-----
Luis Mondesi
System Administrator
Kiskeyix.org

"We think basically you watch television to turn your brain off, and
you work on your computer when you want to turn your brain on" --
Steve Jobs in an interview for MacWorld Magazine 2004-Feb

No .doc: http://www.gnu.org/philosophy/no-word-attachments.es.html


More information about the ubuntu-users mailing list