vim Vundle 插件管理器的安装



vim 支持丰富的插件 ,可以更加便利的完成工作. 

下面说明的是vundle.vim 的安装方案. 

从以下地址下载: https://github.com/VundleVim/Vundle.vim 


linux 下面  :

mkdir  -p ~/.vim/bundle

unzip  Vundle.vim-master.zip  

mv   Vundle.vim-master   ~/.vim/bundle/Vundle.vim



vi  ~/.vimrc

1 set nocompatible              " be iMproved, requiredfiletype off                  "required
2 " set the runtime path to include Vundle and initialize" alternatively, pass a path where Vundle should install plugins
3  
4 set rtp+=~/.vim/bundle/Vundle.vim/call vundle#begin('~/.vim/bundle/')
5 Plugin 'VundleVim/Vundle.vim'
6 Plugin 'fatih/vim-go'Plugin 'wincent/command-t'
7 " All of your Plugins must be added before the following linecall vundle#end()            " requiredfiletype plugin indent on    " required" To ignore plugin indent changes, instead use:"filetype plugin on"" Brief help" :PluginList       - lists configured plugins" :PluginInstall    - installs plugins; append `!` to update or just :PluginUpdate" :PluginSearch foo - searches for foo; append `!` to refresh local cache" :PluginClean      - confirms removal of unused plugins; append `!` to auto-approve removal"" see :h vundle for more details or wiki for FAQ" Put your non-Plugin stuff after this line



下载 :  https://github.com/fatih/vim-go 

unzip  vim-go-master.zip
mv  vip-go-master  ~/.vim/bundle/vim-go


然后开一个vi窗口 执行 

:PluginInstall

完成安装了, 如果主机能够上网, 可以下载git 客户端 ,跟curl ,可以直接从github 上下载相应的插件包并自动安装. 

下图是个代码自动补全的屏幕截图. 


attachment.jsp?aid=10483

来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/133735/viewspace-2081169/,如需转载,请注明出处,否则将追究法律责任。

转载于:http://blog.itpub.net/133735/viewspace-2081169/

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值