From: Hans Hagen <pragma@wxs.nl>
To: ntg-context@ntg.nl
Subject: Re: Vim wiki page updated
Date: Thu, 3 Nov 2016 10:45:03 +0100 [thread overview]
Message-ID: <8e279755-0e50-233e-72ca-8b519cf30e6a@wxs.nl> (raw)
In-Reply-To: <alpine.OSX.2.02.1611021532350.7165@nqv-znpobbx>
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)
>> > 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).
>
>> > The ftplugin file mainly contains shortcuts like `a expand to α, etc;
>> > again,
>> > adapted from latex-suite (which in-turn borred the idea from
>> auctex). These
>> > depend on a ftplugin file provided by latex-suite. There were also a
>> few
>> > macros to reflow text, but your code is more robust and has more
>> features.
>>
>> I will look into those, too. Do you know that Vim has built-in support
>> for digraphs (:h digraphs)? For example, α can be obtained by typing
>> <c-k>a* in Insert mode.
>
> I know of digraphis but it can be tricky to remember all the mapping
> (for example for \subset, \circ, etc.). Auctex uses fairly intuitive
> shortcuts.
>
>> 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.
>
> Aditya
>
>
> ___________________________________________________________________________________
> 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
___________________________________________________________________________________
next prev parent reply other threads:[~2016-11-03 9:45 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-11-01 13:13 Nicola
2016-11-02 7:37 ` Jan Willem Flamma
2016-11-02 18:39 ` Aditya Mahajan
2016-11-02 19:20 ` Nicola
2016-11-02 22:35 ` Aditya Mahajan
2016-11-03 9:45 ` Hans Hagen [this message]
2016-11-03 10:25 ` Nicola
2016-11-03 11:28 ` Hans Hagen
2016-11-03 14:37 ` Nicola
2016-11-05 14:45 ` Alan Braslau
2016-11-05 14:53 ` Nicola
2016-11-05 15:01 ` Wolfgang Schuster
2016-11-05 19:23 ` Nicola
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=8e279755-0e50-233e-72ca-8b519cf30e6a@wxs.nl \
--to=pragma@wxs.nl \
--cc=ntg-context@ntg.nl \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).