[NTG-context] Vim wiki page updated
nvitacolonna at gmail.com
Thu Nov 3 11:25:51 CET 2016
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?
I've rolled out my own, but I will happily use/adapt something "more
>>> > The indent file is adapted from (I think) latex-suite's indent file
>>> > 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
>>> 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
Ok, I'll let you know when I've done it. Pull requests will make my life
much easier :)
More information about the ntg-context