Vim Tricks & Cheat Sheet - nus-cs2030/2021-s1 GitHub Wiki
Navigation
-
0
Move to start of line -
$
Move to last character in line -
b
Move to last word -
w
Move to start of next word -
e
Move to end of next word -
<n>gg
Move to line -
gg
Move to start of file -
G
Move to end of file -
}
Move to end of "paragraph" -
{
Move to start of "paragraph"
Tabs
-
:e <filename>
Open in current tab -
:tabedit <filename>
Open in new tab -
gt
Go to next tab -
gT
Go to previous tab -
<n>gt
Go to nth tab
*Please update if corrections are needed.