Command mode is the initial mode. Vim calls this Normal mode. Not to be confused with command-line-mode, which is what you get after you press :, /, ?, or !
Vim starts in normal mode (unless you :set insertmode
in your .vimrc
). In this mode Vim executes commands when you press keys on the keyboard. This is opposed to insert mode where pressing keys inserts text into the buffer.
Normal mode is often referred to as the command mode. The commands that can be performed in normal mode are vi commands (not to be confused with ex commands, see ex-mode).
You can leave the normal mode by pressing:
- i to enter insert-mode
- v, V or Ctrl+v to enter visual-mode
- Q to enter ex-mode
- gh, gH or gCtrl+h to enter select-mode
- /, ?, ! or : to enter commands in command-line-mode and then return to normal mode.
See also: