PS: Intended to document the configuration of Vim under Windows Gvim and Linux. Every accident in the province is searched for a blog, reconfigured.
An ancient and powerful editor. Simply like to write code silently under the cool terminal.
(Used sublime, Vscode, Atom, all pretty good)
First, under Windows:
1, download Gvim under Windows, and then install.
This time the Gvim open is very ugly, vim configuration file. vimrc in the C drive/user/your Username folder under _VIMRC, or write one yourself. VIMRC can, under Vim: CD ~, will also enter this folder. First, some simple configuration, this configuration file copy away, where the vim will be a long look, very convenient. The following configuration recommends finding a more complete configuration URL to write on demand one by one.
46953293
Then is the plugin manager vundle Https://github.com/VundleVim/Vundle.vim, first you give git with the predecessor skills, and then GitHub installs.
What does git believe to have Baidu you all understand? Would not recommend a free learning website for the Cattle network: HTTPS://WWW.NOWCODER.COM/COURSES/2
Come here and pretend you all Git, know GitHub.
Directly in Git bash
Then copy the following configuration file to
The single citation is a comment and the full file is recommended to be copied on GitHub.
#begin () and #end in the middle of the content, my latter two arrows is the plugin content. The first one is the directory. If you copy the code directly when you install, then the following directory code is not changed, otherwise you can write to find the. vim file.
Plugin Below is an example of how several plugins are installed. Of course you will be wrong, because it is an example of you can be local zip installation, is the path under which you certainly do not have that plug-in compression package. The most stable way is to write a link to git clone in plugin.;
After modifying the plugin configuration file, in Vim: Plugininstall automatically matches the different installation plugins
In fact, it's quite simple.
Then record some plugins: reference 51671890
1,nerdtree Https://github.com/scrooloose/nerdtree
I set the next shortcut key to use, find a plugin can open the folder a tree menu
2,CTRLP Https://github.com/kien/ctrlp.vim
Quick Search, almost no configuration, direct use
3,surround Https://github.com/tpope/vim-surround
4, a nice status bar https://github.com/Lokaltog/vim-powerline
...
...
...
Write the ACM question in Gvim.
Because will not windoes under Makefile, the whim, in fact makefile is not a script, so on Python, with Python just to follow the use, if the C call cmd, but also a number of compilations, then you write the above makefile it. Here is my compilation configuration. C++11 Standard-O2 optimization.
Then, while driving git bash, the main purpose is to be able to use the LS command, Windows View directory is not accustomed to dir. Then you can happily write the code, the terminal is convenient to run. You can even file streams to write ACM. And the experience of Linux is very similar.
To be Continued ...
Life is endless and it's not ~vim. Editor configuration (2018)