Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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.

like image 379
JensD Avatar asked Jun 25 '12 11:06

JensD


2 Answers

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
like image 104
kev Avatar answered Sep 21 '22 10:09

kev


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!

like image 41
Fredrik Pihl Avatar answered Sep 22 '22 10:09

Fredrik Pihl