From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (from majordomo@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id RAA15772; Mon, 17 Nov 2003 17:47:54 +0100 (MET) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f Received: from nez-perce.inria.fr (nez-perce.inria.fr [192.93.2.78]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id RAA15084 for ; Mon, 17 Nov 2003 17:47:53 +0100 (MET) Received: from manzanita ([128.120.141.214]) by nez-perce.inria.fr (8.11.1/8.11.1) with ESMTP id hAHGlq112143 for ; Mon, 17 Nov 2003 17:47:52 +0100 (MET) Received: from ijtrotts by manzanita with local (Exim 3.36 #1 (Debian)) id 1ALmYI-00022m-00 for ; Mon, 17 Nov 2003 08:48:38 -0800 Date: Mon, 17 Nov 2003 08:48:38 -0800 To: caml-list@inria.fr Subject: Re: [Caml-list] Jumping to matching keywords with % in Vim Message-ID: <20031117164838.GA7845@localhost> References: <20031117113030.GA2649@localhost> <3FB8F407.2090008@cs.caltech.edu> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <3FB8F407.2090008@cs.caltech.edu> User-Agent: Mutt/1.5.4i From: Issac Trotts X-Loop: caml-list@inria.fr X-Spam: no; 0.00; caml-list:01 issac:01 trotts:01 ijtrotts:01 issac:01 trotts:01 struct:01 davis:99 ocaml:01 center:98 sig:01 vim:01 vim:01 nov:01 plugin:02 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk 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 b:mw=b:mw . '\:\:\,\:\,' > >let b:mw=b:mw . '\<\(object\|sig\|struct\|begin\)\>:\' > >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