码迷,mamicode.com
首页 > 其他好文 > 详细

Vundle使用手册

时间:2014-10-14 22:33:10      阅读:413      评论:0      收藏:0      [点我收藏+]

标签:style   blog   http   color   os   使用   ar   sp   div   


一、简介

Vundle是Vim bundle简称,是一款优秀的Vim插件管理器。

可以通过.vimrc进行配置
安装配置插件
升级配置插件
按名称搜索Vim插件
清理未使用的插件

二、安装

1、安装环境:ubuntu 14.04.1 LTS 32Bit
      需已安装git包,

2、

$ git clone https://github.com/gmarik/Vundle.vim.git ~/.vim/bundle/Vundle.vim

 

3、配置插件

官方模板

set nocompatible " 关闭一致性(必需)
filetype off " (必需)

" 设置Vundle路径并初始化
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()

" 使Vundle管理Vundle(必需)
Plugin gmarik/Vundle.vim

"以下是一些例程
"要保证插件在Vundel#begin/end之间

" plugin on GitHub repo
Plugin tpope/vim-fugitive

" plugin from http://vim-scripts.org/vim/scripts.html
Plugin L9

" Git plugin not hosted on GitHub
Plugin git://git.wincent.com/command-t.git

" git repos on your local machine (i.e. when working on your own plugin)
Plugin file:///home/gmarik/path/to/plugin

" The sparkup vim script is in a subdirectory of this repo called vim.
" Pass the path to set the runtimepath properly.
Plugin rstacruz/sparkup, {rtp: vim/}

" Avoid a name conflict with L9
Plugin user/L9, {name: newL9}

call vundle#end() " (必需)
filetype plugin indent on " (必需)

 

4、安装插件

运行vim,输入命令 :PluginInstall

Vundle使用手册

标签:style   blog   http   color   os   使用   ar   sp   div   

原文地址:http://www.cnblogs.com/lingduwangjue/p/4025022.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!