On Nov 9, 8:23 am, Frank Terbeck <[EMAIL PROTECTED]> wrote:
> Hi list,
>
> Since I had to edit more and more Matlab code in university, I
> scratched an itch a had, with ftplugins/matlab.vim. It didn't feature
> code folding. Now it does. ...it's good enough for me anyway.
>
> I don't know where to send such additions, so I'm just sending to the
> users list now.
>
> Folding is not enabled per default (as it automatically switches to
> fdm=expr - and people using fdm=marker for everything might not like
> that).
>
> To enable it, do:
>     let g:matlab_fold_enable = 1
>
> Comments welcome; and please direct me to the right destination, if
> the users list is just wrong for things like this.
>
> Regards, Frank
>

A few things:

* If possible, syntax based folding such as this should probably be
done in the syntax file and not the ftplugin file, setting fdm to
syntax instead of expr.
* Most syntax and ftplugin files have a "maintainer" listed, to whom
you should probably send your changes so that they might make it into
the officially distributed runtime files.
* You can also upload scripts to vim.org.
* When you submit your changes to the maintainer, it may also a good
idea to post them on the vim_dev mailing list.

Also, if you still edit a lot of matlab code, this might interest you
as well:
http://www.vim.org/scripts/script.php?script_id=2378
--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

Reply via email to