o inserts a new line below the current line and enters insert mode on the new line.
a for ’ append’, this moves the cursor after the current character and enters insert mode.
i for ’ insert’, this immediately switches vim to insert mode.
You can enter it by using an insert command from normal mode. Once in insert mode, typing inserts characters just like a regular text editor. This is the second most used mode, and will be the most familiar behavior to most people. If you want to redo ( i.e., undo your undo) press Ctrl+r in normal mode. This undoes changes up to the last time you were in normal mode. To perform an undo, press u in normal mode. Similarly, you can delete single characters by moving your cursor over it and pressing x. For example, to replace a single character, move your cursor over it and press r, and then the character you want to replace it with. You can also make changes to single characters in normal mode. This particularly helps touch typists who don’t like leaving the home row when making changes. In addition to using the cursor keys to move around, you can use h (left), j (down), k (up), and l (right) to move as well. In normal mode, there are multiple ways to move around an open file. Remember, this is what makes Vim different. Normal mode is where one should spend most of their time while using Vim.
E move to end of word before a whitespace.
B move to beginning of previous word before a whitespace.
W move to beginning of next word after a whitespace.
That is, they don’t insert text into the document instead, certain key presses can: Move the cursorĪs many vim commands, row movement can be prefixed by a number to move s everal lines at a time: In Normal mode key presses don’t work as one would expect. Normal mode can be accessed from other modes by pressing Esc or. Normal Modeīy default, Vim starts in “normal” mode. Because Vim is focused on changing existing code just as much as writing new code, it is split into several modes that each have different purposes.