How to type text in Vim (Insert mode)
Press i and the bottom line shows -- INSERT --. Now the keys type into the file. Press Esc to stop typing and go back to Normal mode. a, A, I, o and O start typing in other places.

You opened the shop's specials note in Vim to fix the burrito line, and typing doesn't work. The letters you type don't appear. The cursor jumps about instead, and a line may even have gone missing. Vim opens in Normal mode, where every key is a command. In Normal mode x deletes a character and j moves down a line.
i is the way in. While -- INSERT -- shows at the bottom, keys type text and Enter starts a new line, as in any other editor. Esc takes you back out to Normal mode.
Al burrito 9.50Al pastor burrito 9.50Fix the burrito
The burrito on the specials note is missing its filling. The cursor is on the b of burrito.
pastor with the space after it, then press Escspecials.txtThis editor needs a keyboard. Read on, and play it at your computer.
Start typing in the right place
Moving the cursor first and then pressing i always works. Vim also has a key for each place you'll want to start, and it moves there and switches to Insert mode in one press.
a starts typing after the letter under the cursor instead of in front of it. You'll use it more than you'd guess, because Esc leaves the cursor on the last letter you typed. To carry on where you stopped, press a.
A starts at the end of the line, wherever the cursor is on it. I starts at the beginning, after the indent. o opens a new empty line below the cursor's line and puts you on it, and O opens one above.
Finish the specials
The churros need a price, and there's a drink to add. The cursor is at the start of the churros line.
3.00, space first, then press Escspecials.txtThis editor needs a keyboard. Read on, and play it at your computer.
Typing at the start of an indented line
The line is indented by two spaces and the cursor is on the last 0 of the price. In Normal mode you press I, type NEW with its space, then press Esc. What does the line say now?
Fix a slip without leaving Insert mode
A few keys do something special while you're typing. Ctrl-w (hold Ctrl and press W) deletes the word just before the cursor, which is quicker than holding Backspace when a word came out wrong. Ctrl-u deletes everything you've typed on the line since you started typing. Press it a second time and it clears the rest of the line before the cursor too.
Ctrl-o lends you Normal mode for one command and then puts you straight back into Insert mode. In Normal mode 0 jumps to the start of the line, so pressing Ctrl-o then 0 carries your typing over to the front of the line you're on.
Keys for while you type
Each one starts in Insert mode. Press the keys you'd use.
| Keys | What they do |
|---|---|
| i | Start typing in front of the character under the cursor. |
| a | Start typing after the character under the cursor. |
| I | Start typing at the beginning of the line, after the indent. |
| gI | Start typing in column one, before the indent. |
| A | Start typing at the end of the line. |
| o | Open a new line below and start typing on it. |
| O | Open a new line above and start typing on it. |
| A count, like 3i | Repeats what you type. 3i, then ab and Esc, types ababab. |
| Esc | Stop typing and go back to Normal mode. |
| Ctrl-w | In Insert mode, delete the word before the cursor. |
| Ctrl-u | In Insert mode, delete what you typed on this line. Again, and it deletes the rest before the cursor. |
| Ctrl-o | In Insert mode, run one Normal-mode command, then keep typing. |