Use pathogen to manage your vim plugins (http://www.cnblogs.com/chijianqiang/archive/2012/11/06/vim-3.html)
1) Install pathogen (https://github.com/tpope/vim-pathogen)
a)
mkdir -p ~/.vim/autoload ~/.vim/bundle && \
curl -LSso ~/.vim/autoload/pathogen.vim https://tpo.pe/pathogen.vim
#after this step, there will be 2 more directories under ~/.vim: bundle and autoload,
#it is the bundle where all plugins reside
b)
#add following line into your ~/.vimrc
call pathogen#infect()
2) Use git clone to install plugins
a) NerdTree
cd ~/.vim/
git clone git://github.com/scrooloose/nerdtree.git
#add map setting in your vimrc to use "Ctrl+t" to open nerdtree
map <C-t> :NERDTree<CR>
b) command-t (https://github.com/wincent/command-t)
cd ~/.vim/
git clone https://github.com/wincent/command-t.git bundle/command-t
#goto the ruby directory to compile C extension
cd ~/.vim/bundle/command-t/ruby/command-t
ruby extconf.rb
make
#add map setting in vimrc
1) powerline
#use python pip to install powerline
#install pip in python if you don't have one (https://pip.pypa.io/en/latest/installing/)
pip install powerline-status
#add following lines into your vimrc
set rtp+=/Library/Python/2.7/site-packages/powerline/bindings/vim
set guifont=Monaco\ for\ Powerline:h14.5
set laststatus=2
let g:Powerline_symbols = 'fancy'
set encoding=utf-8
set t_Co=256
set number
set fillchars+=stl:\ ,stlnc:\
set term=xterm-256color
set termencoding=utf-8
syntax enable
set background=light
1) Install pathogen (https://github.com/tpope/vim-pathogen)
a)
mkdir -p ~/.vim/autoload ~/.vim/bundle && \
curl -LSso ~/.vim/autoload/pathogen.vim https://tpo.pe/pathogen.vim
#after this step, there will be 2 more directories under ~/.vim: bundle and autoload,
#it is the bundle where all plugins reside
b)
#add following line into your ~/.vimrc
call pathogen#infect()
2) Use git clone to install plugins
a) NerdTree
cd ~/.vim/
git clone git://github.com/scrooloose/nerdtree.git
#add map setting in your vimrc to use "Ctrl+t" to open nerdtree
map <C-t> :NERDTree<CR>
b) command-t (https://github.com/wincent/command-t)
cd ~/.vim/
git clone https://github.com/wincent/command-t.git bundle/command-t
#goto the ruby directory to compile C extension
cd ~/.vim/bundle/command-t/ruby/command-t
ruby extconf.rb
make
#add map setting in vimrc
map <C-c> :CommandT<CR>
1) powerline
#use python pip to install powerline
#install pip in python if you don't have one (https://pip.pypa.io/en/latest/installing/)
pip install powerline-status
#add following lines into your vimrc
set rtp+=/Library/Python/2.7/site-packages/powerline/bindings/vim
set guifont=Monaco\ for\ Powerline:h14.5
set laststatus=2
let g:Powerline_symbols = 'fancy'
set encoding=utf-8
set t_Co=256
set number
set fillchars+=stl:\ ,stlnc:\
set term=xterm-256color
set termencoding=utf-8
syntax enable
set background=light