Vim plugin configuration note

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

map <C-c> :CommandT<CR>


Other ways to install vim plugin

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



   





  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值