On 2012-04-15, Bram Moolenaar wrote:
> Júlio wrote:
> 
> > Providing an identification string is a great idea, i'll contact the Octave
> > community and see their reactions and proposals for the string, do you have
> > any identifier in mind?
> > 
> > if (filename matches *.m)
> >   if (comment_symbol == '#' || script_last_line == '% octave')
> >     filetype=octave
> >   else
> >     filetype=matlab
> 
> Please don't top-post.
> 
> If you put something in a comment, you could use -*-octave-*-, so that it
> also works with Emacs.

Or, if you're having to put a special string in the file just for
Vim, why not make it "vim: ft=octave"?

Regards,
Gary

-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

Raspunde prin e-mail lui