Personal vim cheat sheet
b
: move backwards word by worde
: jump to the end of a wordge
: jump to the end of the previous word
f{character}
: move to the next occurence of a character in a lineF{character}
: move to the previous occurence of a character in a linet{character}
: move just beforef{character}
(think of as "un[t]il")T{character}
: move just afterF{character}
;
: repeat the last character search forwards,
: repeat the last character search backwards
}
: jump entire paragraph downwards{
: jump entire paragraph upwardsCTRL-D
: move down half a pageCTRL-U
: move up half a page
*
: search for the word under the cursor forwards#
: search for the word under the cursor backwards
gd
: jump to the definition of the word under your cursorgf
: jump to the file of the import under your cursor
{line}gg
: go to a specific line%
: jump to matching({[]})
g~
: switch casegu
: make lowercasegU
: make uppercase>
: add indentation<
: remove indentation=
: format code
d/{word}
: delete until wordD
: delete from the cursor to the end of the lineC
: change from the cursor to the end of the lineY
: copies an entire line
.
: repeat your last change;
: repeat your last motionr
: replace one single character for another~
: switch case for a single character