Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I'm trying to get started with things like FuzzyFinder, but I am stuck at the point where it says:

INSTALLATION

Put all files into your runtime directory. If you have the zip file, extract it to your runtime directory.

You should place the files as follows:

your_runtime_directory/plugin/fuf.vim

...

What is a "runtime directory"? What goes in there? Where is mine?

share|improve this question

4 Answers 4

up vote 7 down vote accepted

Assuming that you're using some flavor of Unix, your personal runtime directory is ~/.vim. This is where you should put any plugin used only by you. If you want other users to be able to access the plugin, put it in the second directory of the 'runtimepath' option, which is usually $VIM/vimfiles. You should not install any plugins into the $VIMRUNTIME directory. That directory is intended for plugins distributed with Vim. If you put other plugins in that directory, or modify files in that directory, you will likely lose those changes when you update your Vim installation.

See

:help 'rtp'
:help $VIMRUNTIME

for more about this.

share|improve this answer
    
Actually, this is definitely the more complete answer. –  Andres Jaan Tack Jun 15 '10 at 20:32
1  
If the OP is considering installing plugins like FuzzyFinder, it might also be worth mentioning plugin managers like Vundle or (older) Pathogen - the sooner you can get started using a plugin manager, the better, as it rationalizes the default sub-folder structure in ~/.vim/ . –  J-P Feb 13 at 20:53

There are actually multiple “runtime directories”. Use :set runtimepath? inside Vim to see the directories involved.

Any of them should work, but probably the easiest place to use would be the per-user directory ~/.vim/, which should be first in your Vim's runtimepath.

mkdir ~/.vim; (cd ~/.vim && unzip /path/to/vim-fuzzyfinder.zip)

If you want to install it for all users on the system, then try one of the later directories in the list (one of which is the version specific value that is also in Vim's $VIMRUNTIME variable).

share|improve this answer
    
That's exactly what I needed! Awesome. –  Andres Jaan Tack Jun 15 '10 at 20:23

Enter :!echo $VIMRUNTIME inside vim to find out.

share|improve this answer
    
Blank? So I... don't have one? –  Andres Jaan Tack Jun 15 '10 at 18:55
    
@Andres Jaan Tack: I am guessing that you ran the command in your shell. You need to issue that command at a colon prompt in Vim. –  Chris Johnsen Jun 15 '10 at 19:39
    
it will work better without ! since the environment variable won't exist on Windows –  Janus Troelsen Apr 4 '13 at 21:10

Late to the game here ... according to the docs

echo VIMRUNTIME=`vim -e -T dumb --cmd 'exe "set t_cm=\<C-M>"|echo $VIMRUNTIME|quit' | tr -d '\015' `
share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.