Vim mnemonics
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
: appendb
: beginning (of current or previous word)c
: changed
: deletee
: 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
: insertj
: downk
: upl
: rightm
: markn
: next (occurrence of last search)o
: open (new line below current line)p
: put (paste)q
: quote? (record a macro in given register)r
: replaces
: substitutet
: toward (next given character on current line)u
: undov
: (enter) visual modew
: (next) wordx
: x-out (delete a single character)y
: yankz
: fold (it’s visual, it looks like a folded sheet of paper)
Reference:
My site is free of ads and trackers. Was this post helpful to you? Why not
Disqus is great for comments/feedback but I had no idea it came with these gaudy ads.