How do I open a new line below the cursor and start typing?
o
The o command opens a new line below the current line and places you in insert mode, ready to type.
o
The o command opens a new line below the current line and places you in insert mode, ready to type.
P
The P (uppercase) command pastes the contents of the default register before the cursor position.
p
The p command pastes (puts) the contents of the default register after the cursor.
>>
The >> command shifts the current line one shiftwidth to the right, adding indentation.
I
The I (uppercase) command moves the cursor to the first non-blank character of the current line and enters insert mode.
J
The J command joins the current line with the line below it, replacing the newline with a space.
guiw
The guiw command converts the entire word under the cursor to lowercase.
yyp
The yyp command duplicates the current line by yanking it and immediately pasting it below.
daw
The daw command deletes a word including one side of its surrounding whitespace.
dd
The dd command deletes the entire current line, regardless of where the cursor is positioned on that line.
dit
The dit command deletes the text inside the nearest enclosing HTML or XML tag pair without removing the tags themselves.
D
The D command deletes everything from the cursor position to the end of the current line.
de
The de command deletes from the cursor position to the end of the current word.
A
The A command moves the cursor to the end of the current line and enters insert mode.
gg=G
The gg=G command re-indents every line in the current file according to Vim's indentation rules.
cgn
The cgn command combines the change operator with the gn motion to change the next occurrence of your last search pattern.
ciw
The ciw command deletes the inner word under the cursor and drops you into insert mode so you can type a replacement.
ci{
The ci{ command deletes everything inside the nearest pair of curly braces {} and places you in insert mode to type a replacement.
ci(
The ci( command deletes everything inside the nearest pair of parentheses and places you in insert mode, ready to type a replacement.
C
The C command deletes everything from the cursor position to the end of the line and places you in insert mode.