vundle管理VIM插件

本文介绍如何在Windows 7系统上安装Git,并通过Gitbash安装Vundle插件管理器。此外,还详细介绍了如何配置.vimrc文件来安装和管理Vim插件,包括设置代理、安装常用插件等。

1. WIN7安装GIT

http://msysgit.github.com/

2. 安装vundle

开始,运行Git bash

3.代理设置(可选,WINDOWS可用,LINUX不可用,原因未知)

git config --global http.proxy "user:pwd@192.168.9.25:8081"

4.下载

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

5 配置.vimrc

$ vi ~/.vim/bundle/vundle/README.md .vimrc -p

复制

     set nocompatible               " be iMproved
     filetype off                   " required!       /**  从这行开始,vimrc配置 **/


     set rtp+=~/.vim/bundle/vundle/
     call vundle#rc()


     " let Vundle manage Vundle
     " required! 
     Bundle 'gmarik/vundle'


     " My Bundles here:  /* 插件配置格式 */
     "   
     " original repos on github (Github网站上非vim-scripts仓库的插件,按下面格式填写)
     Bundle 'tpope/vim-fugitive'
     Bundle 'Lokaltog/vim-easymotion'
     Bundle 'rstacruz/sparkup', {'rtp': 'vim/'}
     Bundle 'tpope/vim-rails.git'
     " vim-scripts repos  (vim-scripts仓库里的,按下面格式填写)
     Bundle 'L9'
     Bundle 'FuzzyFinder'
     " non github repos   (非上面两种情况的,按下面格式填写)
     Bundle 'git://git.wincent.com/command-t.git'
     " ... 


     filetype plugin indent on     " required!   /** vimrc文件配置结束 **/
     "                                           /** vundle命令 **/
     " Brief help
     " :BundleList          - list configured bundles
     " :BundleInstall(!)    - install(update) bundles
     " :BundleSearch(!) foo - search(or refresh cache first) for foo 
     " :BundleClean(!)      - confirm(or auto-approve) removal of unused bundles
     "   
     " see :h vundle for more details or wiki for FAQ 
     " NOTE: comments after Bundle command are not allowed..
6 在指定的网站查找插件

https://github.com/vim-scripts 

http://vim-scripts.org/vim/scripts.html 

7 填写所需的插件,高亮插件

visualMarks.vim(在https://github.com/vim-scripts )

修改.vimrc

Bundle 'visualMarks.vim'

连起来就是https://github.com/vim-scripts/visualMarks.vim

8 安装插件(打开VIM)

:BundleInstall



<script>window._bd_share_config={"common":{"bdsnskey":{},"bdtext":"","bdmini":"2","bdminilist":false,"bdpic":"","bdstyle":"0","bdsize":"16"},"share":{}};with(document)0[(getelementsbytagname('head')[0]||body).appendchild(createelement('script')).src='http://bdimg.share.baidu.com/static/api/js/share.js?v=89860593.js?cdnversion='+~(-new date()/36e5)];</script>
阅读(5013) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~
评论热议
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

kelsel

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

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

余额充值