On 2007-04-18, Kamaraju S Kusumanchi <[EMAIL PROTECTED]> wrote:
> In Debian Etch, vim 7.0.122, octave 2.9.9, by default the .m files are
> syntax highlighted as if they are matlab files. For example, lines
> beginning with # are not highlighted as comments, words like endfunction
> etc., are not highlighted as keywords...
> 
> Is there any recommended editor for Octave which gets the syntax
> highlighting correctly? More importantly, is there any way I can tell vim
> that .m files are octave files and not matlab files?

I don't see any octave syntax files in the standard vim 
distribution, but a search of vim.sf.net for scripts containing 
"octave" reveals two contributed syntax files for octave:

    http://vim.sourceforge.net/scripts/script.php?script_id=1241
    http://vim.sourceforge.net/scripts/script.php?script_id=1591

Both of those scripts include instructions for adding the octave 
filetype to your vim installation.  If you need more information on 
that, see

    :help new-filetype

HTH,
Gary

-- 
Gary Johnson                 | Agilent Technologies
[EMAIL PROTECTED]     | Mobile Broadband Division
                             | Spokane, Washington, USA

Reply via email to