Keys Flashcards
h, j, k, l, gj
h Left, j down, k Up, l right. gj Down, down line by line even if its wrapped
y, p
Yank copy, Print paste
/
Search
f character, optional ;, F
Go to next character. ; Go to next occurance. F Go to previous character
w W. b B, e
Go to next word. BigW is WORD-_78 which is 1 word. Go to previous word. e Go to end of next word
t character, T
Go to before the chatacter. T backwards go previous character after it
0 ^ $
0 moves to first character of line. ^ first non blank character of line. $ goes to end of line
{, ctrl D. } ctrl U
{ down paragraph, ctrl D half page down.
/ pattern enter. ? pattern enter
Search forward. ? To search backwards. n next match or N previous match. Space .* Means selects all?
gd gf
Go to definition of whatever under Ur cursor. gf go to file in an import
gg. Line gg. G. %
Go to top of file. Line gg go to that line number. G end of file. % jump to matching bracket
d2w, dd. D. dt; d/cu
Delete 2 words. dd delete line. D delete after cursor. dt; delete until ;. At cursor delete to search cu enter.
u. ctrl r
Undo, redo
ggdG
Delete whole document
d f c t.
Delete, find, change, unTil. ffct’ find f, change until ‘.