Vim beginners

 G ++ compiler to achieve

1, first download and install MinGW , Download in http://sourceforge.net/projects/mingw/ . This is installed while downloading, the download is complete, ie the installation is complete. I install directory is G: \ MinGW.

2, set the environment variable. Right-click My Computer, click Properties -> Advanced -> Environment Variables -> System Variables . then:

1, by adding the PATH G: \ MinGW \ bin, remember, if there is also other variables, remember to add a semicolon ah, have to enter a semicolon in the English input mode.
2, the new LIBRARY_PATH variables, if any, in the value added to G: \ MinGW \ lib, which is the location of the standard library.
3, New C_INCLUDEDE_PATH variable value is set to G: \ MinGW \ include.
4, (can be saved) CPLUS_INCLUDE_PATH new variable, the value of G: \ MinGW \ include; G : \ MinGW \ include \ c ++ \ 4.5.0; G: \ MinGW \ include \ c ++ \ 4.5.0 \ backward; G: \ MinGW \ include \ c ++ \ 4.5.0 \ mingw32

 

 The default setting to save the file path

In _vimrc file, add:

exec 'cd ' . fnameescape('F:\')

 

F: \ into the path they need, so that after the new file in vim directly with the command ": w filename" can be automatically saved to the path defined.

Guess you like

Origin www.cnblogs.com/shenben/p/11316097.html