caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: Issac Trotts <ijtrotts@nez-perce.inria.fr>
To: caml-list@inria.fr
Subject: Re: [Caml-list] Jumping to matching keywords with % in Vim
Date: Mon, 17 Nov 2003 08:48:38 -0800	[thread overview]
Message-ID: <20031117164838.GA7845@localhost> (raw)
In-Reply-To: <3FB8F407.2090008@cs.caltech.edu>

On Mon, Nov 17, 2003 at 08:15:03AM -0800, Aleksey Nogin wrote:
> On 17.11.2003 03:30, Issac Trotts wrote:
> 
> >For those who use Vim and have the matchit.vim plugin installed,
> >here are a few lines to put in $HOME/.vim/ftplugin/ocaml.vim :
> >
> >let b:mw='\<let\>:\<and\>:\(\<in\>\|;;\),'
> >let b:mw=b:mw . '\<if\>:\<then\>:\<else\>,\<do\>:\<done\>,'
> >let b:mw=b:mw . '\<\(object\|sig\|struct\|begin\)\>:\<end\>'
> >let b:match_words=mw
> >
> >Then the percent key jumps between begin...end, let...in, etc.  
> 
> Thanks, it's really cool! The only thing - it should be "let 
> b:match_words=b:mw", not "let b:match_words=mw" (at least for me in vim 
> 6.2.121 it does not work otherwise).

Sure.  Thanks for pointing out my typo.  I forgot to fix it.

-- 
Issac Trotts
Programmer
Center for Neuroscience
University of California, Davis 

-------------------
To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr
Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/
Beginner's list: http://groups.yahoo.com/group/ocaml_beginners


  reply	other threads:[~2003-11-17 16:47 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-11-17 11:30 Issac Trotts
2003-11-17 16:15 ` Aleksey Nogin
2003-11-17 16:48   ` Issac Trotts [this message]
2003-11-17 16:40 ` [Caml-list] vim - switching between .ml and .mli Stefano Zacchiroli

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=20031117164838.GA7845@localhost \
    --to=ijtrotts@nez-perce.inria.fr \
    --cc=caml-list@inria.fr \
    /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).