<?xml version="1.0" encoding="ISO-8859-1"?>

<!DOCTYPE message PUBLIC
  "-//MLarc//DTD MLarc output files//EN"
  "../../mlarc.dtd"[
  <!ATTLIST message
    listname CDATA #REQUIRED
    title CDATA #REQUIRED
  >
]>

  <?xml-stylesheet href="../../mlarc.xsl" type="text/xsl"?>


<message 
  url="2003/11/3d9cc991dadd878e66293fc2a0aa9594"
  from="Issac Trotts &lt;ijtrotts@n...&gt;"
  author="Issac Trotts"
  date="2003-11-17T16:47:54"
  subject="Re: [Caml-list] Jumping to matching keywords with % in Vim"
  prev="2003/11/1186588d5da72a466c3a1190d2f6937c"
  next="2003/11/653fcdcc6b26a352eb994c594097f7c2"
  prev-in-thread="2003/11/77454b1dcd0bf70ae065fae653e1090a"
  next-in-thread="2003/11/1186588d5da72a466c3a1190d2f6937c"
  prev-thread="2003/11/5d3e596b74eaa9ee75a58da8d20cd9d9"
  next-thread="2003/11/d9694c4eef770fa17289a4d313aa19c0"
  root="../../"
  period="month"
  listname="caml-list"
  title="Archives of the Caml mailing list">

<thread subject="[Caml-list] Jumping to matching keywords with % in Vim">
<msg 
  url="2003/11/bacc85928dbd73f2643743fc792e3b9b"
  from="Issac Trotts &lt;ijtrotts@n...&gt;"
  author="Issac Trotts"
  date="2003-11-17T11:29:47"
  subject="[Caml-list] Jumping to matching keywords with % in Vim">
<msg 
  url="2003/11/77454b1dcd0bf70ae065fae653e1090a"
  from="Aleksey Nogin &lt;nogin@c...&gt;"
  author="Aleksey Nogin"
  date="2003-11-17T16:15:07"
  subject="Re: [Caml-list] Jumping to matching keywords with % in Vim">
<msg 
  url="2003/11/3d9cc991dadd878e66293fc2a0aa9594"
  from="Issac Trotts &lt;ijtrotts@n...&gt;"
  author="Issac Trotts"
  date="2003-11-17T16:47:54"
  subject="Re: [Caml-list] Jumping to matching keywords with % in Vim">
</msg>
</msg>
<msg 
  url="2003/11/1186588d5da72a466c3a1190d2f6937c"
  from="Stefano Zacchiroli &lt;zack@b...&gt;"
  author="Stefano Zacchiroli"
  date="2003-11-17T16:40:17"
  subject="[Caml-list] vim - switching between .ml and .mli">
</msg>
</msg>
</thread>

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

</contents>

</message>

