When I first learned Vim I spend a couple of hours remembering some mnemonics used to navigate in vim. Realizing that i means insert mode I start to look for other keys based on commands. Then I realized that it doesn’t matter how logical it is, if you remember it then that is good enough. Below there is a lit of vim commands, that could help navigate in vim.

List of Vim Commands:

In normal mode:

  • a: append
  • b: beginning (of current or previous word)
  • c: change
  • d: delete
  • e: end (of current word)
  • f: find (next given character on current line)
  • g: go (used as “leader” for many commands)
  • h: left (only makes sense on the keyboard used by vi’s author, same for jkl)
  • i: insert
  • j: down
  • k: up
  • l: right
  • m: mark
  • n: next (occurrence of last search)
  • o: open (new line below current line)
  • p: put (paste)
  • q: quote? (record a macro in given register)
  • r: replace
  • s: substitute
  • t: toward (next given character on current line)
  • u: undo
  • v: (enter) visual mode
  • w: (next) word
  • x: x-out (delete a single character)
  • y: yank
  • z: fold (it’s visual, it looks like a folded sheet of paper)

Reference:

  1. Vim cheat sheat for programmers

My site is free of ads and trackers. Was this post helpful to you? Why not BuyMeACoffee