views:

43

answers:

3

I have dowloaded the rails.zip file from http://www.vim.org/scripts/script.php?script_id=1567. and have unzipped it to a folder rails. Now to install the plugin to vim.

Here's the vim version am using in my ubuntu 9.04 : version 7.2.79.

A: 

Unzip it in ~/.vim like the instructions say.

hobbs
thats all is it ? how to make sure that my plugin is installed ?
Saran
+3  A: 

You need to place the files into your vim runtime (~/.vim in your case).

This can get messy over time. A better solution is to use Pathogen. Install Pathogen into ~/.vim/autoload. Then you can add the following to your .vimrc:

filetype off
call pathogen#runtime_append_all_bundles()
call pathogen#helptags()

And use the ~/.vim/bundle directory to install the plugin, ~/.vim/bundle/rails would contain the contents of the zip file.

claytron
A: 

If you don't want to use pathogen, you can do the work it does by yourself:

  1. Run

    vim -c 'helptags /path/to/rails/doc' -c 'qa!'
    

    (note: /path/to/rails should be replaced with a path to rails plugin, relative path could also be used, but /doc part should be written literally)

  2. Put the following into ~/.vimrc:

    let &runtimepath="/path/to/rails,".&runtimepath
    
ZyX