

Often, we just need to change one character (ex: changing i to j)

2yy copy current line and the line below it - total 2 lines.y$ copy from current character to end of line.Select text to copy (using mouse or visual commands), press y to copy the text.There are various ways to copy text using the yank command y S delete current line and change to Insert mode (same as cc).5s delete character under cursor and 4 characters to its right and change to Insert mode - total 5 characters.s delete only the character under cursor and change to Insert mode.C delete from current character to end of line and change to Insert mode.4cc delete current line and 3 lines below it and change to Insert mode - total 4 lines.cc delete current line and change to Insert mode.5x delete character under cursor and 4 characters to its right - total 5 characters.x delete only the current character under cursor.D delete from current character to end of line.dk delete current line and the line above it.10dd delete current line and 9 lines below it - total 10 lines.dj or d↓ can also be used ( j and ↓ both function as down arrow key).2dd delete current line and the line below it - total 2 lines.Select text (using mouse or visual commands), press d to delete the text.There are various ways to delete text, which can then be pasted elsewhere using paste command Remember to be in Normal mode, if not press Esc key. Combining editing commands with movement commands.
