So I'm working on compilers. morethanreal and I are
writing it in Scheme.
When you're working in Scheme, checking which ( matches
which ) is of utmost importance. And if you know me, you know
that I use vim. Vim has pretty minimalist
paren-matching stuff by default; you can use '%' to see what matches
the paren (or square bracket or brace or whatever) under the cursor.
I found some stuff using Google that
makes vim briefly move the cursor over to the matching open paren
when you type a close paren. While this helps, it's not perfect, in
that it will match open parens in code when you type a close paren
in a string or comment (but.. I could probably fix that).
Then I found some other stuff that does the emacs-y thing of
highlighting the matching paren when your cursor is on a paren. This
is super-helpful; unfortunately, the stuff I found was way
too slow to actually use (where "too slow" is defined as follows:
you hold down j/k to scroll through text, and the scrolling slows
down, getting behind on keypress events, so that when you release
the button, it keeps scrolling seemingly forever).
Does anybody know of some good vim scripts/plugins/whatever to
do this? Suggestions welcome at pcolijn gmail com, unless
your suggestion is of the form "use emacs you vim-loving weenie."
I am in this to increase productivity; learning to use a new
editor is too much overhead (at least in the short term; in the long
term it is possible I could be brought over to the dark side, as
some of vim's shortcomings (like this one) are starting to get to me).