vim and '%': no brackets, how to navigate instead?

M

Markus Fischer

Hi,

coming from languages which extensively use brackets I'm very accustomed
in using % to jump between start/end. How this is getting a bit tricky,
if not to say "no possible" because of the lack of all the brackets
(which I find refreshing, btw).

But I guess it's not that easy, % would need to be able to jump between
"class" and "end", "if" and "end", "while" and "end", etc.

Is there an easy way to change this behavior or is there some kind of
ready-made plugin available? I'm runnig gvim on win32 and although it
has ruby support (compiled it; syntax files) it doesn't seem to support
this.

thanks,
- Markus
 
M

Markus Fischer

Hi,

Jeff said:

thanks, it works now. However, it was my own stupidity actually. I found
that page already and I was reading about matchit but somehow wasn't
able to put the puzzle together.

For the record: gvim on Windows comes with everything already, it just
that the matchit plugin resides in the macro/ dir of vim and to use it,
it has to be in the plugin/ directory.

cheers,
- Markus
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,770
Messages
2,569,584
Members
45,075
Latest member
MakersCBDBloodSupport

Latest Threads

Top