Skip to content

Instantly share code, notes, and snippets.

@jbnv
Last active January 12, 2018 16:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jbnv/09579593226d22e6ba934b90e4463edf to your computer and use it in GitHub Desktop.
Save jbnv/09579593226d22e6ba934b90e4463edf to your computer and use it in GitHub Desktop.
Vim Quick Reference

Note: These apply to the Vim-Mode-Plus plugin for Atom and my custom keymaps. This is not a generic reference for Vim.

A "word" is an alphanumeric string. A "WORD" is any series of non-whitespace separated by whitespace.

  • a Append after cursor/at end of line.

  • b Previous word/WORD ("backword").

  • c Change. ๐Ÿ”  Change to end of line.

  • d Delete. ๐Ÿ”  Delete to end of line.

  • e End of word.

  • f

  • g ๐Ÿ”  Go.

  • h Move left.

  • i Insert before cursor/at beginning of line.

  • j Move down. ๐Ÿ”  Join next line down to the end of the current line.

  • k Move up.

  • l Move right.

  • m Mark.

  • n Next. Repeat prior search forward/backward.

  • o Open line after/before cursor.

  • p Put after/before cursor.

  • q

  • r Replace one character. ๐Ÿ”  Begin overstrike or replace mode.

  • s Substitute character/line.

  • t

  • u Undo. ๐Ÿ”  Restore line.

  • v Start selecting. ๐Ÿ”  Select current line.

  • w Beginning of next word/WORD.

  • x Delete one character.

  • y Yank (copy to buffer).

  • z

  • 0 Beginning of line.

  • $ End of line.

  • . Repeat last command.

  • * Search word under cursor.

  • g t Next/previous tab.

  • b Previous word/WORD ("backword").
  • h Left.
  • j Down.
  • k Up.
  • l Right.
  • w Beginning of next word/WORD.
  • c Change.
  • d Delete.
  • v Select.
  • y Yank.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment