Browse thread
[Caml-list] Jumping to matching keywords with % in Vim
-
Issac Trotts
-
Aleksey Nogin
- Issac Trotts
- Stefano Zacchiroli
-
Aleksey Nogin
[
Home
]
[ Index:
by date
|
by threads
]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: | 2003-11-17 (16:47) |
From: | Issac Trotts <ijtrotts@n...> |
Subject: | Re: [Caml-list] Jumping to matching keywords with % in Vim |
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