vim下vundle是一款管理插件的神器,能够管理众多的vim插件,安装方法如下:
#git clone https://github.com/gmarik/vundle.git ~/.vim/bundle/vundle
set nocompatible "与vi不一致 filetype off set rtp+=~/.vim/bundle/vundle/ "载入特定目录插件 "set rtp+=$HOME/.vim/bundle/vundle/ "Windows下 call vundle#rc() "plugin "vimscripts账号下的项目直接填写名称即可 Bundle 'snipMate' "其它需填写用户/资源名称 Bundle 'gmarik/vundle' "非github上资源 Bundle 'git://git.wincent.com/command-t.git' "indent Bundle 'php.vim-html-enhanced' "color Bundle 'Lucius' filetype plugin indent on
启用vundle,然后安装可以使用vundle管理的插件,例如powerline。
安装方法:
#cd ~/.vim/bundle/
#git clone https://github.com/Lokaltog/vim-powerline
在vimrc中添加如下代码:
set t_Co=256
Bundle 'vim-powerline'
set laststatus=2
let g:Powerline_colorscheme='solarized256'
没有评论:
发表评论