Open a hole and record the evolutionary process using VIM. This thing is not a day or two with the fine, more natural feel that there are many places need to further study, and slowly come up with efficiency.
First I spent most of the time on win to do development, win on the vim need to go to configure a lot of plug-ins, I remember that I also toss a little day. I have configured a simple and used version here, like can be taken first:
Https://github.com/RockDeria/rock_tools_vim.git
This does not introduce basic operations, but extends one layer, which is directly oriented to demand.
1. Adjust the number of empty characters from 1 to 10 lines at the beginning of the line, taking 2 as an example (note the distance between the last two slashes, the distance of the empty characters in the beginning of your final result, and if it is empty, delete all the empty characters from the beginning)
: 1, 10s/^\s*/ /
2. Cursor at the first character of a word, delete the word and start editing
C W
3. Remove 35, 36 lines of//comments
:36s/\/\//g
4. In the next few lines of the current cursor, take a few actions to replace the string in line 4 below the current cursor with an int
:., +4s/string/int/g
Vim editor usage accumulation (for win)