.
: Repeat last command
e
: Move to end of wordw
: Move to beginning of word (prepend number to specify how many word)W
: Move forward a WORD, any non-whitespace characters (prepend number to specify how many word)b
: Move backward to the beginning of a word. (prepend number to specify how many word)
$
: Move end of line0
: Move beginning of linek
orUp
: Move up 1 line (prepend number to specify how many lines)j
orDown
orEnter
: Move down 1 line (prepend number to specify how many lines): 10 Enter
: Jump to line 10
H
orgg
: Jump to the top of the screen.M
: Jump to the middle of the screen.L
orG
: Jump to the bottom of the screen.
daw
: Delete the word under the cursor (prepend number to specify how many words)caw
: Delete the word under the cursor and put you in insert modedw
: Delete a word from the cursordd
: Delete current line
-
>>
: Indent line by shiftwidth spaces -
<<
: De-indent line by shiftwidth spaces -
5>>
: Indent 5 lines -
5==
: Re-indent 5 lines -
>%
: Increase indent of a braced or bracketed block (place cursor on brace first) -
=%
: Reindent a braced or bracketed block (cursor on brace) -
<%
: Decrease indent of a braced or bracketed block (cursor on brace) -
]p
: Paste text, aligning indentation with surroundings -
=i{
: Re-indent the 'inner block', i.e. the contents of the block -
=a{
: Re-indent 'a block', i.e. block and containing braces -
=2a
: Re-indent '2 blocks', i.e. this block and containing block -
>i{
: Increase inner block indent -
<i{
: Decrease inner block indent