Reputation: 13143
I installed Vim in Fedora 16 with this command:
$ yum -y install vim-enhanced
Vim works just fine, but now I wanted to add the NERD Commenter and NERD Tree plugins. In the home directory I cant find neither .vim/
nor .vimrc
. So I went ahead and created those but still it's not picking it up.
How do you install Vim plugins in Fedora?
Upvotes: 1
Views: 8675
Reputation: 196466
You have to create ~/.vimrc
and ~/.vim/
yourself.
After that simply follow each plugin's installation instructions.
For NERDTree (from the plugin's page):
Unzip the archive into your ~/.vim directory.
That should put NERD_tree.vim in ~/.vim/plugin and NERD_tree.txt in ~/.vim/doc.
Run :helptags.
Go :help NERD_tree.txt for the help page.
After all that, you are supposed to end up with this structure:
~/.vim/doc/NERD_tree.txt
~/.vim/doc/tags
~/.vim/nerdtree_plugin/exec_menuitem.vim
~/.vim/nerdtree_plugin/fs_menu.vim
~/.vim/plugin/NERD_tree.vim
~/.vim/syntax/nerdtree.vim
Which is all you need to use NERDTree:
:NERDTree<CR>
Did you try the "built-in" netrw
, invoked with :Ex
(:Hex
,:Sex
,:Vex
…), before deciding to install NERDTree?
Upvotes: 4
Reputation: 17323
The fact that your distribution is Fedora should be largely irrelevant. The install process is the same for any GNU/Linux distribution.
I recommend you manage your plugins with Tim Pope's Pathogen. Install Pathogen to your .vim directory per the instructions in the README. Then, edit your .vimrc to run Pathogen on startup (again, see the README).
Then, with Pathogen installed, you can add any plugin to the directory .vim/bundle
, and it'll load automatically.
Vim's plugin management is pretty crummy, and Pathogen fills the much-needed role of a plugin manager. It's wildly popular, and pretty simple.
Upvotes: 3