Detailed description of VIM configuration in the Windws system

Source: Internet
Author: User
Next, we will introduce the specific steps for my configuration. By the way, all vimrc files of amix are stored on the svn server. anyone who knows the address can execute the svn command to obtain the latest version and get the latest version modified by amix at any time. If you want to install svn more quickly and conveniently, you 'd better install svn and directly obtain all the file structures of amix. Otherwise, you have

Next, we will introduce the specific steps for my configuration. By the way, all vimrc files of amix are stored on the svn server. anyone who knows the address can execute the svn command to obtain the latest version and get the latest version modified by amix at any time.

If you want to install svn more quickly and conveniently, you 'd better install svn and directly obtain all the file structures of amix. Otherwise, you have to download the plug-ins one by one and change the directory, you may also encounter version problems.

My machine software environment is:
Operating system: windows 7 Chinese version
Svn: Tortoise SVN 1.6.6 (Subversion 1.6.6)
Vim: vim7.2

The methods to be introduced below are basically suitable for all common windows versions, but the storage directories are slightly different (windows xp and windows2003 are just different storage directories, which will be mentioned later; windows 2008 and vista directories should be the same as windows 7)

OK.
1. first open your _ vimrc file. Yes, it is in the vim installation directory. Then add the following content to your _ vimrc:

Fun! MySys ()
Return "windows"
Endfun
Set runtimepath = ~ /. Vim_runtime ,~ /. Vim_runtime/after, $ VIMRUNTIME
Source ~ /. Vim_runtime/vimrc
Helptags ~ /. Vim_runtime/doc

Set fileencodings = UTF-8, gb2312, gbk, cp936
Set termencoding = UTF-8
Set fileformats = unix
Set encoding = prc

The first six lines are used to specify the path of the configuration file. we will download the vim configuration of amix and place it in "~ /. Vim_runtime "directory. The last four rows of set are used to solve Chinese garbled characters.
OK. save and close the _ vimrc file after adding the file. then, run vim and you will receive an error message, similar to "xxx path not found". Yes, write down the path first.
In fact, this path is mentioned in the previous step ~ Path .~ In vim, the meaning is "current user directory". even if you do not know your current user directory, it is a good idea to let vim prompt you like this.
In this example, my username is Leonardo. Bright. in Windows 7, if I use Leonardo. Bright to log on, my "user directory" is: c: UserLeonardo. Bright
Windows xp should be in: c: Documents and SettingsLeonardo. Bright

2. okay. we should open it ~ -- "Current user directory", that is, my, er, c: Documents andSettingsLeonardo. Bright
Use the md. vim_runtime command in the console to create the. vim_runtime Directory. do not directly use the windows GUI to create the directory. the Gui will not allow you to create a directory starting.

3. enter ~ /. Vim_runtime Directory
Use the svn checkout address to the current directory: svn: // orangoo.com/vim ~ /. Vim_runtime

4. open ~ /. Vim_runtime/vimrc file
Locate row 151st and its content looks like this: set gfn = Bitstream Vera Sans Mono: h10
This is the font setting. we obviously do not have this font. change it to the font you like. I use "new ". so after the change, it is like this: setgfn = new: h10.

5. comment out all lines 172 to 176. they are in conflict with the encoding we set earlier. After the annotations, they look like this:

"Set encoding = utf8
"Try
"Lang en_US
"Catch
"Endtry

6. download the latest peaksea color scheme and put it in your vim72/colors directory.

All right, it's that simple. For more information, see the amix documentation: http://amix.dk/vim/vimrc.html.

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.