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 RAA14861; Mon, 17 Nov 2003 17:15:07 +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 RAA14714 for ; Mon, 17 Nov 2003 17:15:06 +0100 (MET) Received: from dell.nogin.org (charter-182-203.caltech.edu [131.215.182.203]) by nez-perce.inria.fr (8.11.1/8.11.1) with ESMTP id hAHGF4109985 for ; Mon, 17 Nov 2003 17:15:04 +0100 (MET) Received: from cs.caltech.edu (localhost.localdomain [127.0.0.1]) by dell.nogin.org (8.12.10/8.12.9) with ESMTP id hAHGF3ge008172 for ; Mon, 17 Nov 2003 08:15:03 -0800 Message-ID: <3FB8F407.2090008@cs.caltech.edu> Date: Mon, 17 Nov 2003 08:15:03 -0800 From: Aleksey Nogin Organization: California Institute of Technology, Computer Science Department User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.6a) Gecko/20031023 X-Accept-Language: ru, en-us, en MIME-Version: 1.0 To: Caml List Subject: Re: [Caml-list] Jumping to matching keywords with % in Vim References: <20031117113030.GA2649@localhost> In-Reply-To: <20031117113030.GA2649@localhost> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Loop: caml-list@inria.fr X-Spam: no; 0.00; caml-list:01 issac:01 trotts:01 struct:01 626:99 ocaml:01 sig:01 vim:01 vim:01 caltech:01 caltech:01 plugin:02 match:02 match:02 wrote:03 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk 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). -- Aleksey Nogin Home Page: http://nogin.org/ E-Mail: nogin@cs.caltech.edu (office), aleksey@nogin.org (personal) Office: Jorgensen 70, tel: (626) 395-2907 ------------------- 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