1, h, move the cursor to the left;
2, L, move the cursor to the right;
3, J, move the cursor downward;
4, k, the cursor upward movement;
5, the operation of the above moving cursor needs to be carried out in normal mode;
6, in the use of HJKL at the same time, keyboard keys are also the same effect;
1, <esc>, enter the normal mode;
2,: q!, do not save the modified content to exit vim;
1, x, delete the characters under the cursor;
1, I, into the insertion mode;
1, a, at the end of the line of the cursor is appended;
2, a, in the current position of the cursor is appended;
1,: Wq, save the file and exit;
1, move the cursor using the arrow keys or hjkl,h (left), J (Down), K (UP), K (right);
2. Use Vim to edit files under Shell, Vim FILENAME <ENTER>;
3. Exit Vim,<esc>: q! <ENTER> do not save exit;<esc>: Wq <ENTER> Save exit;
4, delete the characters under the cursor, X;
5, insert or append text, i insert text <ESC>, insert in front of the cursor, a append text <esc>, append at line end, a append text <esc>, append to the cursor;
6, <esc>, enter the normal mode or cancel the part you do not want to complete the data;
1, DW, delete the word where the cursor is located;
1, d$, delete the cursor at the end of the content;
1, D motion;
2, D is the deletion operation;
3, motion is the intention of operator operation;
4, W, positioning to the beginning of the next word, the cursor is positioned to the first character of the next word;
5, E, position the cursor at the end of the word, the cursor is positioned to the last character of the word;
6, $, position the cursor at the end of the line, the cursor is positioned to the last character at the end of the line;
This article from the "Bowl sale Five Ginger" blog, reproduced please contact the author!
Vim Learning Notes