ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Nikolai Weibull <mailing-lists.context-users@rawuncut.elitemail.org>
Subject: Re: TeX + Metapost syntax highlighting in Vim
Date: Fri, 8 Jul 2005 23:32:05 +0200	[thread overview]
Message-ID: <20050708213205.GB5397@puritan.pnetwork> (raw)
In-Reply-To: <42CEBDB6.5030702@wxs.nl>

(Sorry for responding to two separate mails, I'm a bit rushed, going on
a three-day holiday.)

Hans Hagen wrote:

> Mojca Miklavec wrote:

> > If you have something like
> > \startMPpage
> > draw ...
> > \stopMPpage,
> > it will do the syntax highligting for metapost inside the \start-\stop 
> > pair.

That's a great idea, I'll add that to my version

> > I downloaded SpellChecker and SuperTab (autocomplete) today from the vim 
> > website and it works great! (see http://contextgarden.net/Vim and feel 
> > free to add any useful stuff there)

Version 7 has a spell-checker built in.

> > I was astonished as I saw autocomplete work. There are only a couple of 
> > lines with an extraordinary functionality. I think that if someone 
> > writes a good script to convert texshow to vim syntax highlighting 
> > script, than autocomplete will be able to provide good hints for all the 
> > existing commands in ConTeXt and the corresponding parameters. I'll try 
> > to see what I can do, but please don't excpect any results too soon.

There's always the ever-simple CTRL-P/CTRL-N as well.

> What is the syntax? I can exten ctstools to spit out a vim keyword table; 
> it already handles scite, jedit and bbedit so adding vim is not undoable

Download vim and run :help syntax.  But the short version is

syn keyword contextKeyword  ...
            ^-- group name  ^-- keywords

But that won't work for stuff beginning with \\.  Then you'll have to
use regexes and

syn match   contextKeyword  ...
                            ^-- regex

Exactly what kind of keyword table are we talking about?,
        nikolai

-- 
Nikolai Weibull: now available free of charge at http://bitwi.se/!
Born in Chicago, IL USA; currently residing in Gothenburg, Sweden.
main(){printf(&linux["\021%six\012\0"],(linux)["have"]+"fun"-97);}

  reply	other threads:[~2005-07-08 21:32 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-07-08 16:10 Mojca Miklavec
2005-07-08 17:48 ` Thomas A. Schmitz
2005-07-08 22:14   ` VnPenguin
2005-07-14 14:50   ` Christopher Creutzig
2005-07-14 16:16     ` Thomas A. Schmitz
2005-07-08 17:53 ` Hans Hagen
2005-07-08 21:32   ` Nikolai Weibull [this message]
2005-07-12 13:38     ` Mojca Miklavec
2005-07-08 21:28 ` Nikolai Weibull
2005-07-14 19:19   ` VnPenguin
2005-07-15 16:01     ` Nikolai Weibull
2005-09-24 21:41     ` Nikolai Weibull

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=20050708213205.GB5397@puritan.pnetwork \
    --to=mailing-lists.context-users@rawuncut.elitemail.org \
    --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).