comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Re: IDL and VI ; Color highlighting
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Re: IDL and VI ; Color highlighting [message #37443] Wed, 17 December 2003 11:31
Karthik is currently offline  Karthik
Messages: 10
Registered: December 2003
Junior Member
That did it! 'apt-get install vim' and ':syntax on' solved the problem.
Thanks, Mike.

Michael Wallace wrote:
>> Does anyone know if it is possible to use syntax highlighting
>> while editing IDL files using Vi (or Vim). If so, how does one go
>> about doing it?
>
>
> Yes, using vim. There may be basic highlighting in vi, but vim is
> really what you want. To turn on syntax highlighting, you only need to
> do ':syntax on' (without quotes) from within vim and it should
> automagically recognize the file type and highlight appropriately. If
> that doesn't work, try ':cal SetSyn("idlang")' (without quotes) instead.
> If that fails too, then you probably don't have the IDL syntax file
> installed on your system. On my systems, the IDL syntax file is
> /usr/share/vim/vim??/syntax/idlang.vim where ?? is the version number of
> vim. If you can't locate the file, just upgrade vim. Not only will you
> have a better vim, but I know that it comes with the IDL syntax file
> already in place.
>
> HTH,
>
> Mike W
>
Re: IDL and VI ; Color highlighting [message #37445 is a reply to message #37443] Wed, 17 December 2003 11:18 Go to previous message
Michael Wallace is currently offline  Michael Wallace
Messages: 409
Registered: December 2003
Senior Member
> Does anyone know if it is possible to use syntax highlighting while
> editing IDL files using Vi (or Vim). If so, how does one go about doing it?

Yes, using vim. There may be basic highlighting in vi, but vim is
really what you want. To turn on syntax highlighting, you only need to
do ':syntax on' (without quotes) from within vim and it should
automagically recognize the file type and highlight appropriately. If
that doesn't work, try ':cal SetSyn("idlang")' (without quotes) instead.
If that fails too, then you probably don't have the IDL syntax file
installed on your system. On my systems, the IDL syntax file is
/usr/share/vim/vim??/syntax/idlang.vim where ?? is the version number of
vim. If you can't locate the file, just upgrade vim. Not only will you
have a better vim, but I know that it comes with the IDL syntax file
already in place.

HTH,

Mike W
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Linux Colour Display problems
Next Topic: For loops vs. matrix operations

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 08 15:17:18 PDT 2025

Total time taken to generate the page: 0.00646 seconds