first of all, it's worth mentioning. My Vim tutorial PDF version number has been written. Everyone can go to download, here is csdn: csdn download , assume that the left side of the hanging off, you can also enter the browser below such as the following address to download: http://download.csdn.net/detail/xinguimeng/7714213. Of course. Suppose you are a loyal user of Baidu network disk. can also help with the Baidu network disk, I also synchronized to Baidu network, such as the following: Baidu network disk download . Assuming the address is hung, you can enter it in the browser: http://pan.baidu.com/s/1sj9CLXz to download.
Following the previous sections, we continue to learn some commands to manipulate the text content, such commands have a fixed pattern: operator Command + displacement command, we first type an operator command, and then followed by a displacement command, the so-called displacement command, we explained before, is the command to move the cursor, For example, w means to move backwards to the first letter of a word, and 4w to move backwards to the first letter of the fourth word.
operator Command ********************
1. We use the x command to delete a character. Use 4x to remove four characters.
The 2.D command is the first letter of "delete", which means delete, followed by a displacement command, indicating deletion.
DW means that deleting a word,d4w is the deletion of four words.
Both 3.d4w and d4e are able to delete from the cursor and delete four words. But the difference is that D4W will delete the trailing spaces. D4E will keep the space.
4. Because the $ command moves the cursor to the end of the line, d$ represents the deletion of the content from the current position to the end of the line, and the last character of the line is also deleted.
The 5.c command is very similar to the D command. It just goes into insert mode after the command is run. For example, the CW command deletes the word first and then immediately enters insert mode.
The 6.DD command deletes the entire row. The CC command changes the line.
8. Here the C command can be understood as the "change" of the first letter of the word, indicating "changes, changes."
Command Analysis ********************************
1. We can see that in fact the X command is the same as the DL command, which deletes the characters under the current cursor, and the x command is DH. Represents the deletion of the character to the left of the current cursor. Theo, say it. L means move one cell to the right, while H means that the cursor moves one cell to the left. This is the second section of the study, remember it.
The 2.D command represents the d$, which represents the deletion to the end of the line, while C represents the change of content to the end of the line. s represents CL, which changes a character, S represents CC, which changes a whole line of content.
Count Description *******************************
1. If the reader is a child's shoe that likes to be in a dead-d4w, then it will be found that the 4DW effect is the same. Have deleted four words, so are they really the same?
2. The answer is that the effect is certainly the same, but the operating process is different, d4w is a one-time deletion of four words, and 4DW is run 4 times the DW, that is deleted four times, delete one word at a time.
3. In fact, we can use the 4d3w, indicating that each deletion of three words, deleted four times, then the public deletion of 12 words.
Other command *************************************
The 1.R command is the meaning of "replace", which means that the character of the current position is replaced by the character we typed, for example, Rx is the character that replaces the current position with X.
2.5rx is the number of five characters from the back of the character is replaced by X.
8 Summary **************************************
1. In this section we introduce the frequently used commands under VIM, which I cannot. or upload and insert the speed is too slow.
2. I suggest that readers download the PDF that is recommended in this blog header, which is more specific in this article.
3. Sinsing vim, looking forward to your attention.
Sinsing to play with you. Vim section Fourth operation text content