sponsor Vim development Vim logo Vim Book Ad

ftplugin/ruby.vim : Ruby filetype plugin with matchit, lots more

 script karma  Rating 32/16, Downloaded by 4969  Comments, bugs, improvements  Vim wiki

created by
Ned Konz
 
script type
ftplugin
 
description
This is a pretty complete Ruby filetype script.
It provides for the use of matchit.vim, as well as setting the include path correctly (by calling ruby if you have it). It also deals with the possibility of :: in identifiers, both for tags and for finding keywords.
 
install details
Copy the script to your local (or global) ftplugin directory. This should be on your 'runtimepath'. On Unix systems, this could be in your ~/.vim/ftplugin directory.
The current stock ruby.vim shouldn't get in the way.

To get matchit.vim to work, you have to move it from the stock $VIMRUNTIME/macros to the $VIMRUNTIME/plugin directory. Or at least you have to have matchit.vim in a plugin directory on your runtimepath.

If you want to tweak the settings any, just make another ruby.vim in an ftplugin directory at the end of the runtimepath. On Unix systems, this would ordinarily be ~/.vim/after/ftplugin
 

rate this script Life Changing Helpful Unfulfilling 
script versions (upload new version)

Click on the package to download.

package script version date Vim version user release notes
ruby.vim 1.8 2002-08-01 6.0 Ned Konz changed shellquote logic for compatibility with *csh.
ruby.vim 1.7 2002-06-21 6.0 Ned Konz Fixed end at beginning of line
ip used for rating: 18.117.81.240

If you have questions or remarks about this site, visit the vimonline development pages. Please use this site responsibly.
Questions about Vim should go to the maillist. Help Bram help Uganda.
   
Vim at Github