WIN7 Installation Configuration Gvim

Source: Internet
Author: User
Tags autoload git commands

This article is based on the VIM website of "simple Steps-to-help-you-Install GVim on Windows 7" "1" of the article.

1. Download Gvim

Under HTTP://WWW.VIM.ORG/DOWNLOAD.PHP/PC, find "Pc:ms-dos and ms-windows" and download "Gvim74.exe" "2".

2. Installing Gvim

1. You can choose to change the directory at the time of installation (in this article, a new directory is created under the users/user name, and the Gvim is installed in this directory).

2. Be careful to select ' Full ' option when installing.

3. Under the Vimfiles folder, there will be many empty folders. Erase them all.

4. cut the "AutoLoad" folder under the Vim74 folder to the Vimfiles folder.

5. Create a new folder bundle under the Vimfiles folder.

3. Installing Msysgit

1. Please refer to "3" for the installation procedure of Win7 under Git.

2. Follow the steps "3" To install Git and find that git and Curl commands are not recognized under Win7 cmd. This is because when you ask if you want to modify the environment variable, use Git Bash only is selected. The shell that is provided only in Msysgit. So git commands are not available under Win7 cmd.

Need to reinstall the overlay again. Do not uninstall Git and rerun the Msysgit Setup program. When you run to the following page, select "Use Git from the Windows Command Prompt".

3. After the installation, Curl is required (purpose: Ensure that it can is run from the command prompt), specifically set the method reference in the "Curl on Windows" section of the article "4".

1. Copy the following in "4" to a new Curl.cmd file and save it to the cmd directory of the Msysgit installation path (for example, C:\Program files\git\cmd\curl.cmd).

@rem don't use "echo off" to not affect any child calls. @setlocal @rem Get The Abolute path to the parent directory, which is assumed to being The@rem Git installation root. @for/F "delims="%%i in ("%~dp0:") do @set Git_install_root=%%~fi@set PA th=%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%*

2. Run Curl--version under the Win7 command line if the output below indicates that the Curl setting is successful.

> Curl--versioncurl 7.21.1 (i686-pc-mingw32) libcurl/7.21.1 openssl/0.9.8k zlib/1.2.3protocols:dict file ftp FTPs htt P HTTPS IMAP imaps LDAP ldaps POP3 pop3s rtsp smtp Smtps telnet tftpfeatures:largefile NTLM SSL SSPI libz

4. Installing pathogen

1. Win7 command line cmd to switch to the AutoLoad directory, and then execute the following Curl command:

C:\users\admin\vim\vimfiles\autoload>curl-lsso Pathogen.vim https://raw.github.com/tpope/vim-pathogen/master/ Autoload/pathogen.vim

Note: The original is the -sso option, there is an error, refer to the "5" in the PDF of the correction, changed to -lsso.

2. After the installation is complete, use the following command to see if the Pathogen.vim file can be found. If it can be found, it indicates the installation was successful.

D:\Program Files (x86) \vim\vimfiles\autoload>dir | find/i "Pathogen.vim" 2014/12/08  23:03            12,139 Pathogen.vim

5. Modify the configuration _VIMRC

1. Before modifying the _VIMRC file, it is a good idea to back up the file.

2. Add the following command at the end of the _vimrc file to make pathogen work correctly.

"Personal Settings." Added Soon.execute pathogen#infect () filetype plugin indent onsyntax on

3. Install a Colorsheme plug-in to verify that the pathogen is working properly.

(1) You must ensure that the Win7 command line is switched to the bundle folder.

(2) Execute the following command to install the Kolor plugin.

C:\users\admin\vim\vimfiles\bundle>git Clone Https://github.com/zeis/vim-kolor

(3) Test Kolor plug-in is installed successfully

Re-open Gvim and enter the following command to verify that the shading scheme under Gvim is changed.

: Colorsheme Kolor

(4) The above command can only function under the current GVIM, close the current Gvim window, open again, is still the default colorsheme. Can be modified in _VIMRC.

"Set Color schemecolorscheme Kolor

(5) Molokai coloring Scheme is more beautiful, you can follow the above steps, using pathogen installation Molokai plug-in, Molokai URL is Https://github.com/tomasr/molokai.

C:\users\admin\vim\vimfiles\bundle>git Clone Https://github.com/tomasr/molokai

4. Set the _VIMRC further.

(1) The following settings can be copied to the _VIMRC file.

Set the status line options. Make it show more Information.set laststatus=2set statusline=%f%m%r%h%w\ [format=%{&ff}]\ [type=%y]\[pos=%l,%v][%p %%]\%{strftime (\ "%d/%m/%y\-\%h:%m\")} "Set Color Scheme and Font optionscolorscheme molokaiset Guifont=consolas:h12" Set Line no, buffer, search, highlight, autoindent and More.set nuset hiddenset ignorecaseset incsearchset smartcaseset sh Owmatchset autoindentset rulerset vbset viminfo+=n$vim/_viminfoset noerrorbellsset showcmdset mouse=aset history= 1000set undolevels=1000

(2) Re-open gvim, enter command

: E $VIM/_VIMRC

Open the _VIMRC file to view the configuration effects.

Resources:

"1" http://www.vim.org/ugrankar.pdf

"2" Ftp://ftp.vim.org/pub/vim/pc/gvim74.exe

"3" Git Installation Guide under Windows (http://www.cnblogs.com/zhcncn/p/3787849.html)

"4" https://github.com/gmarik/Vundle.vim/wiki/Vundle-for-Windows

"5" Vim in the installation and initial configuration of the WIN7/WIN8 system (http://blog.sciencenet.cn/blog-818592-829306.html)

WIN7 Installation Configuration Gvim

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.