Install the vim plug-in Windows to manage vundle

Source: Internet
Author: User

Vim is the god of the editor. Needless to say, the more you use it, the more powerful and convenient Vim is. However, it is powerful based on a combination of many plug-ins, and VIM itself lacks effective management of plug-ins. it is inconvenient to install plug-ins and configure the _ vimrc file. Inspired by ruby bunler, gmarik developed the vim plug-in vundle, which can be divided into different directories for management. What's more, it is easy to add plug-ins to be installed, then, run the command to install and update vim and vundle. The following describes how to install vim and vundle.

1. Install git.

Vundle is based on the GIT architecture. Every plug-in is a repository of a project. With vundle, you can use simple commands to install, update, and delete all plug-ins with one click.

Download msysgit and install it (the specific visible http://drupalchina.cn/content/windows-xi-tong-xia-gitan-zhuang-tu-jie), and add the GIT installation path to the environment variable path, such

D:\Program Files\Git\cmd

Run CMD and enter

git --version

If the GIT version information is displayed, the installation is successful.

2. Configure the curl script.

In Windows, you also need to create a curl script for vundle remote connection. Create an empty text file in the GIT path and change it to curl. cmd. The edited content is

@rem Do not use "echo off" to not affect any child calls.@setlocal@rem Get the abolute path to the parent directory, which is assumed to be the@rem Git installation root.@for /F "delims=" %%I in ("%~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 %*

Save and run cmd. Enter

curl --version

If the version information is displayed, the configuration is successful.

3. Install vundle.

After git is installed, clone vundle from the official website to the vim installation path, as shown in figure

git clone https://github.com/gmarik/vundle D:\Vim\vimfiles\bundle\vundle

The Vim directory structure should be as follows:

D: Vim

+ --- Vim73

+ --- Vimfiles

+ --- Bundle

+ --- Vundle

+ --- Autoload

4. Configure vundle.

According to the configuration officially provided by vundle, all plug-ins installed through vundle will be installed in the Windows user directory. Here, the modifications are made and directly installed in the vim directory for convenient management.

Edit the _ vimrc file and add

Filetype off "specifies the vundle path set RTP + = $ Vim/vimfiles/bundle/vundle/call vundle # RC ('$ Vim/vimfiles/bundle /') bundle 'gmarik/vundle' filetype dent in indent on "original repos on GitHub <br> bundle 'mattn/zencoding-Vim 'bundle' drmingdrmer/xptemplat'" vim-scripts reposbundle 'd9' bundle 'fuzzyfinder 'bundle 'bufjavaser.zip 'bundle' taglist. vim 'bundle' mark 'bundle' the-nerd-tree 'bundle' matrix. vim 'bundle' close Tag. Vim 'bundle' the-nerd-commenter 'bundle 'matchit.zip 'bundle' autocomplpop 'bundle' jsbeautify 'bundle' yankring. Vim 'filetype plugin indent on "required!

5. Install the plug-in

Install plug-in specific can see http://yp.oss.org.cn/blog/show_resource.php? Resource_id = 1561.

The following link is my vim configuration file: https://github.com/cgnerds/vim.

Reference link:

1 allovince Vim configuration scheme: http://yp.oss.org.cn/blog/show_resource.php? Resource_id = 1561

2 Use vundle to manage Vim plug-ins: http://www.cnblogs.com/qiangji/archive/2011/07/31/Vundle.html

3. Vim vundle: http://blog.csdn.net/codebistu/article/details/8257138

4. Vim configuration file for reference

Https://github.com/asins/vim/blob/master/_vimrc

Https://github.com/AlloVince/vim-of-allovince/blob/master/_vimrc

Related Article

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.