ITPub博客

首页 > Linux操作系统 > Linux操作系统 > vim Vundle 插件管理器的安装

vim Vundle 插件管理器的安装

原创 Linux操作系统 作者:babyyellow 时间:2016-04-14 14:20:16 0 删除 编辑


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 上下载相应的插件包并自动安装. 

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



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

请登录后发表评论 登录
全部评论
oracle MySQL Postgresql 专职数据库dba。 系统架构师。 mysql 官方认知dba 。 15年专职dba 经验。 潜意识沟通实证者 心理咨询师。 禅修布道者, 禅修指导员。 禅定实证者。

注册时间:2010-12-02

  • 博文量
    367
  • 访问量
    1908848