Command Description Mode Note A*| Insert one or many character at the end of the line | Normal | Type A, what ever text
* you want and then exits insert mode
ESC |
o | Creates a new, empty line | Normal | below the cursor and puts Vim in Insert mode. |
0 | Go to the start of the line | Normal | |
U | Undo line | Normal | It undoes all the changes made on the last line that was edited. Typing this command twice cancels the preceding U. |
dd | Delete a line | Normal | |
dnd | Delete n line | Normal | Example: d2d deletes two lines. |
d$ | Delete the end of the line from the cursor | Normal | |
J | Deleting a line break | Normal | ie join two lines together |
n$ | Go to the end of the n line | Normal | Example : 2$ |
Motion: