JensD
JensD

Reputation: 195

vim/macvim plugins osx 10.7.4

Could you help me get plugins working for either macvim or the terminal vim?

What I have tried thus far:

To the desktop I git clone https://github.com/scrooloose/nerdtree.git. I have attempted placing the files in ~/.vim, where I created a folder named bundle and placed file nerdtree in there.

Alternatively I have gone to /usr/share/vim/vim73 and placed all files in the their respective folders. Using this method does work for NERDTree in the terminal vim, however it does not for other plugins.

Still no luck with getting this to work. Help is appreciated.

Upvotes: 5

Views: 4779

Answers (4)

gafreax
gafreax

Reputation: 410

I think that the best solution is to do this

  git clone https://github.com/scrooloose/nerdtree.git ~/.vim/

So u can be sure that the plugin go in the right folder, otherwise git make nerdtree folder for you, and you must move the nertrees' content to your ~/.vim/

Upvotes: 0

Fredrik Pihl
Fredrik Pihl

Reputation: 45670

I use pathogen. This allows you to put all you plugins in a separate directory making it very easy to manage. E.g. when using nerdtree which you can clone into a folder and do git pull when there is a update.

Add this to your .vimrc

call pathogen#infect()

then, add nerdtree etc to the folder

~/.vim/bundle

that's all you need to do!

Upvotes: 5

kev
kev

Reputation: 161954

NERD_tree install details:

  • Unzip the archive into your ~/.vim directory.
  • That should put NERD_tree.vim in ~/.vim/plugin and NERD_tree.txt in ~/.vim/doc.

After installing, the ~/.vim looks like this:

.vim/
├── doc
│   ├── NERD_tree.txt
│   └── tags
├── nerdtree_plugin
│   ├── exec_menuitem.vim
│   └── fs_menu.vim
├── plugin
│   └── NERD_tree.vim
└── syntax
    └── nerdtree.vim

Upvotes: 6

Aswan
Aswan

Reputation: 76

I believe this needs to be in: ~/.vim/plugin/...

From: http://vim.runpaint.org/extending/extending-vim-with-scripts-plugins/

Upvotes: 0

Related Questions