Browse thread
[Caml-list] Jumping to matching keywords with % in Vim
-
Issac Trotts
- Aleksey Nogin
- Stefano Zacchiroli
[
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:15) |
From: | Aleksey Nogin <nogin@c...> |
Subject: | Re: [Caml-list] Jumping to matching keywords with % in Vim |
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). -- 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