On 11/3/2016 11:25 AM, Nicola wrote:
On 03/11/2016 10:45, Hans Hagen wrote:
On 11/2/2016 11:35 PM, Aditya Mahajan wrote:
On Wed, 2 Nov 2016, Nicola wrote:

The syntax scripts in Vim already cover all of MetaFun. MetaFun
keywords are highlighted by default inside ConTeXt documents; for
MetaPost files ('mp' filetype), you must put

  let g:mp_metafun_macros = 1

into your vimrc.

Ah, great!

if you need a command list .. there are scripts for that (no vim yet,
but for scite we ship simple lists of commands)

Are these scripts available somewhere?

what kind of datafile do you need?

I've rolled out my own, but I will happily use/adapt something "more
official".

> The indent file is adapted from (I think) latex-suite's indent file
with
> modificiations that suit my taste. I am not sure these should go into
> the default vim indent file, but it may be worthwhile for you to
take a
> quick look.

MetaPost indentation is tough. I have rewritten the indent script in
Vim from scratch, and now it works reasonably well. I will try yours,
but you might try the one currently in Vim, too.

I did not change metapost indenting, but defined some rules for
indenting of context files. I believe that your indent file does not
attempt to indent context files (I may be mistaken because I am just
reading the .vim files, not testing it as I don't have vim8 yet).

Correct, no indentation for ConTeXt. This is something that may be worth
adding.

I could maybe create a GitHub repository, to make it easier to merge
your work.

That will be nice. Then I can also send you pull requests for specific
things.

Ok, I'll let you know when I've done it. Pull requests will make my life
much easier :)

Nicola


___________________________________________________________________________________

If your question is of interest to others as well, please add an entry
to the Wiki!

maillist : ntg-context@ntg.nl /
http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________


--

-----------------------------------------------------------------
                                          Hans Hagen | PRAGMA ADE
              Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
       tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
-----------------------------------------------------------------
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

Reply via email to