Windows Gvim using the Vundle plugin

Source: Internet
Author: User
Tags using git

Vundle is a plugin for managing vim plugins. Installing, updating, and uninstalling plugins requires only modifying the _VIMRC.

Here are the steps to install the Vundle, provided the gvim7.4 is already installed. ( Note: gvim do not install to the system disk, otherwise do not have permission to edit the _VIMRC file )

1. Download git and install

2, copy the following code to the new text document, and name it Curl.cmd, and then put it in C:\Program files\git\cmd\ (modify it according to your Git installation directory)

@rem do no use"echo off"to a affect any child calls. @setlocal @rem Get The Abolute path to the parent directory,whichis assumed to be the@rem Git installation root. @for/F"delims="%%iinch("%~dp0 .") Do@set git_install_root=%%~Fi@set PATH=%git_install_root%\bin;%git_install_root%\mingw\bin;%path%@if not exist"%home%"@set home=%homedrive%%homepath%@if not exist"%home%"@set home=%userprofile%@curl. exe%*

3, put; C:\Program Files (x86) \git\bin; C:\Program Files (x86) \git\libexec\git-core added to the environment variable system variable path. Otherwise, when you install the plug-in using Vundle, Git is not the internal name external command.

4. Download the Vundle plugin using Git. Open git Bash, go to Vim's installation directory, enter the following command to download the Vundle to the Vimfiles/bundle/vundle.vim directory

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

5, insert the following code in _VIMRC, Vundle is completed the installation and configuration

Set nocompatible              " be improved, requiredfiletype off                  "  requiredset RTP+ = $VIM/vimfiles/bundle/vundle.vim/letpath='$VIM/vimfiles/bundle'  'gmarik/vundle.vim'         "callvundle# End ()            filetype plugin indent on


6. To configure a new plugin, you must fill in the plug-in path between call Vundle#begin (path) and call Vundle#end ().

The path to the

plug-in configuration follows the following rules:1> level two directory directly add github.com prefix;2> directory plus github.com/vim-scripts prefix;3> full path;4> full local path

 1  >plugin  " gmarik/vundle.vim    = Https://  github.com/gmarik/vundle.vim  2  >plugin  "  '  = Https:


7, in Vim input: Plugininstall Enter, Vundle will be on GitHub from the configuration of the plug-in download to the vimfiles/bundle/directory

8, more about the use of Vundle tutorial please see Vimfiles/bundle/vundle.vim/doc/vundle.txt

Windows Gvim using the Vundle plugin

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.