27

I'm starting to use Vim and I chose Vundle instead of Pathogen.

I would like to know if I can install the NERDTree using Vundle.

I'm starting Vim and searching for NERDTree like this:

:BundleSearch NERDTree

But it is not finding the plugin, only:

"Keymap: i - Install plugin; c - Cleanup; s - Se|
arch; R - Reload list                           |~                                               
"Search results for: NERDTree                   |~                                               
Plugin 'nerdtree-ack'                           |~                                               
Plugin 'FindInNERDTree'  
Kevin Bowen
  • 105
  • 1
  • 5
João Calvin
  • 373
  • 1
  • 3
  • 4

1 Answers1

33

Below is the empty Vundle config.

set nocompatible 
filetype off

" set the runtime path to include Vundle and initialize
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()

" let Vundle manage Vundle, required
Plugin 'gmarik/Vundle.vim'

" All of your Plugins must be added before the following line
call vundle#end()            " required
filetype plugin indent on    " required

Now if you want to add a new plugin example nerdtree

you just add the line

Plugin 'scrooloose/nerdtree'

now the vimrc will look like this

set nocompatible 
filetype off

" set the runtime path to include Vundle and initialize
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()

" let Vundle manage Vundle, required
Plugin 'gmarik/Vundle.vim'
" added nerdtree
Plugin 'scrooloose/nerdtree'
" All of your Plugins must be added before the following line
call vundle#end()            " required
filetype plugin indent on    " required

Now, just save the vimrc and restart vim so it can source the new vimrc then issue the :PluginInstall command:

:PluginInstall

more information on using can be found here

byaruhaf
  • 786
  • 6
  • 9