Vim Ruby

Note to self: vim-ruby's matchit support is delicious. It lets you bounce on the % key to switch between class/end and def/end and if/else/end.

For whatever reason, at work when I installed Vim, matchit was installed by default along with Vim, but you have to manually copy it to the proper directory and build the help file for it yourself before it will work. There are instructions for how to do so at the end of ruby.vim in Vim's standard vim70/ftplugin directory.

Tags: ,

Leave a Reply

You can use these tags in comments (Note: HTML is automatically escaped inside <pre> tags, nowhere else, so if you post source code, put it in <pre>):

<pre lang="some_programming_language"> 
<em>
<strong>
<a href="url">

NOTE: Comments are automatically spam-filtered. If your comment fails to appear, it was likely munched by the filter. Try not to link-spam or post anything that looks like it was typed by a robot.