I'm trying to explain VIM's NORMAL and INSERT modes. Is there a canonical metaphor that the Vi community has to explain the modes?
|
For those coming from graphical editors, this might be helpful: In graphical user interfaces you have two input devices - the keyboard and mouse. You use the keyboard for most editing, and the mouse for moving around the document. In VIM you have two modes that both use the keyboard. One is for moving around the document, and one is for editing the text. Normal mode is akin to using the mouse - except you're going to use the keyboard to move around the document. Edit mode is for adding text, again using the keyboard. |
|||||
|
But honestly, I think the simplest method would be:
|
||||
|
|
|
You are in INSERT mode when you add ("insert") text. You are in NORMAL mode when you want to do something with already existing text. |
|||
|
|
|
Most editors can be thought too of having several (at least two) modes,
The only difference between (the most known in Vim, insert and normal mode) and most editors nowadays, is that most editors use keyboard shortcuts (keyboard combos, i.e. two keys pressed together) while Vim generally relies on single command keys. There are some historical reasons why Vim does it like that, and why let's say, Emacs opted for combos, but that's another story. Btw, who are you explaining this to? |
|||
|
|