From: Nicola <nvitacolonna@gmail.com>
To: ntg-context@ntg.nl
Subject: Re: Vim wiki page updated
Date: Wed, 2 Nov 2016 20:20:30 +0100 [thread overview]
Message-ID: <nvde9r$nkt$2@blaine.gmane.org> (raw)
In-Reply-To: <alpine.OSX.2.02.1611021119330.5625@nqv-znpobbx>
On 02/11/2016 19:39, Aditya Mahajan wrote:
> On Tue, 1 Nov 2016, Nicola wrote:
>
>> I have updated the Vim page at ConTeXt Garden:
>>
>> http://wiki.contextgarden.net/Vim
>>
>> It may be considered as the official documentation of the ConTeXt
>> scripts in Vim, as the only other documentation is the source code
>
> Hi Nicola,
>
> I wonder if you have seen my vim runtime files:
> https://github.com/adityam/vim-context
Unfortunately not, I worked only on those already in Vim.
> The main file to look at is the syntax highlighting file. I haven't
> compared
> carefully with your version (haven't installed vim 8 yet), but there
are a
> few differences. It may be worthwhile to merge the two syntax files.
Ok, I will take a look. I see that your file does not depend on
plaintex.vim. It might be a good idea to remove that dependency...
> The metapost syntax highlighting file defines a few keywords that are
> used by
> metafun. Could these be merged to your mp syntax highlighting file?
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.
> 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.
> 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.
> The compiler file is old and I haven't tested it in a few years, so
please
> ignore it.
OK.
I could maybe create a GitHub repository, to make it easier to merge
your work.
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
___________________________________________________________________________________
next prev parent reply other threads:[~2016-11-02 19:20 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 [this message]
2016-11-02 22:35 ` Aditya Mahajan
2016-11-03 9:45 ` Hans Hagen
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='nvde9r$nkt$2@blaine.gmane.org' \
--to=nvitacolonna@gmail.com \
--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).