Skip to content

Vim Tricks & Cheat Sheet

Gernene edited this page Oct 9, 2020 · 2 revisions

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.

Clone this wiki locally