Knock the database column code today, change really hard,
vim is found in the back of the command record function, ready, 1 minutes can be done.
must be recorded.
ext: http://blog.163.com/tunzao@126/blog/static/137115484201122601749849
record and playback of VIM commands
If the file has the following contents
Stdio.h
Fcntl.h
Unistd.h
Stdlib.h
Want to change it into
#include "stdio.h"
#include "fcntl.h"
#include "Unistd.h"
#include "Stdlib.h"
Move the cursor to the first line, and then perform the following:
QA begins to record subsequent commands in register a
^ Move the cursor to the beginning of the line
I#include "<Esc> Insert #include before this line"
$ move to end of line
A "<Esc> at end of Line plus" character
J move to the next line
Q Stop Recording
Then press @a to automatically complete the 2,3,4 line change.
Explain:
1. Use the "Q{register}" command to begin, subsequent actions will be recorded in the name of the {register}
Registers. The given register name must be a letter between A and Z
2 Perform the action you want to perform.
3. Press Q to end the record of the command (note that only Q is a character, do not type more
Remaining characters).
Now you can use the "@{recording}" command to perform the record macro just recorded
Out.