Installing Gvim Records on Windows

Source: Internet
Author: User
Tags autoload

The cause is interest in programming, as well as picking up what you learned at school, and trying to learn a new programming language from scratch, filtered to Python. Editor want to choose a lightweight and easy to use software, do not need a large IDE, after the trial on Linux, think Vim is good, there is a tutorial on the Web to install Vim on win, and then into the pit, toss to hell ...

First, download and install Gvim

Reference: http://www.cnblogs.com/zhcncn/p/4151701.html

Http://http://www.vim.org/ugrankar.pdf

1: Install Gvim, note that the installation option is "full"

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

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

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

Second, install Git

1. Install and use Git under Windows (Cygwin) (reference link: http://book.51cto.com/art/201107/278802.htm)

This method installed on the Cygwin use Vim did not find any big problem, but I need to use in Windows, completely out of the Linux environment, and the text does not involve, and the Cygwin, git and vim in win on the relationship is not familiar with, there is no clue, put aside , there will be Kung fu again.

2, Installation Msysgit

Reference Link: http://www.cnblogs.com/zhcncn/p/4151701.html

3. Create the Curl.cmd file under the Git installation directory/cmd folder and add the following code to the file:

1@rem do notUse"echo off"To notaffect any child calls.2 @setlocal3 4@rem Get The Abolute path to the parent directory, which isassumed to be the5 @rem Git installation root.6@ for/F"delims="%%iinch("%~dp0 .") Do @set git_install_root=%%~FI7@set path=%git_install_root%\bin;%git_install_root%\mingw\bin;%path%8 9@if  notExist"%home%"@set home=%homedrive%%homepath%Ten@if  notExist"%home%"@set home=%userprofile% One  A@curl. exe%*

4. Enter Curl--version on the Windows command line to verify that Curl is configured successfully, as shown below:

Curl 7.54.0 (x86_64-pc-win32) libcurl/7.54.0 winssl zlib/1.2.11protocols:dict file ftp FTPS gopher HTTP HTTPS IMAP IM APS LDAP POP3 pop3s RTSP SMB SMBs SMTP Smtps telnet tftpfeatures:asynchdns IPv6 largefile SSPI Kerberos SPNEGO NTLM SSL L Ibz

5, install pathogen, the original is to use the Curl command to install (note: Need in the VIM installation directory \vimfiles\autoload):

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

But this link is too old to expire, find the following link on GitHub to replace it (you can also copy the code directly into Autoload/pathogen.vim):

Https://github.com/tpope/vim-pathogen/blob/master/autoload/pathogen.vim

6, Configuration _VIMRC

_VIMRC files are located in the Vim installation directory, properly backed up

At the end of the file, add the following code:

1 " Personal Settings. 2 "  3 execute pathogen#4filetype plugin indenton5 Syntax on

7. Install a color theme using the git command to check if pathogen is working properly

7.1 Run the following code, note: You need to run the git command in the bundle directory

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

7.2 Test plug is installed successfully, reopen Gvim, command line mode Enter the following code, if the Gvim interface color changes, the plug-in installation is successful.

: ColorScheme Kolor

7.3 The previous Test command only works in the current Gvim window, such as to save the configuration and modify the _VIMRC file:

" Set Color Schemecolorscheme Kolor

7.4 Further setup _VIMRC

1 "Set the status line options. Make it show more information.2Set laststatus=23Set statusline=%f%m%r%h%w\ [format=%{&ff}]\ [type=%y]\[pos=%l,%v][%p%%]\%{strftime (\"%d/%m/%y\-\%h:%m\ ")}4 "Set Color Scheme and Font Options5 ColorScheme Idle6Set guifont=Consolas:h127 "set Line no, buffer, search, highlight, autoindent and more.8 Set Nu9 Set HiddenTen Set ignorecase One Set Incsearch A Set Smartcase - Set Showmatch - Set Autoindent the Set Ruler - set VB -Set viminfo+=n$vim/_viminfo - Set Noerrorbells + Set ShowCmd -Set mouse=a +Set history=1000 ASet undolevels=1000

Eventually:

Installing Gvim Records on Windows

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.