Vim Scoops / Lessons / Insert mode

How to type text in Vim (insert mode)

Press i to start typing before the cursor and Esc when you're done. A types at the end of the line and o opens a new line below.

The keys

KeysWhat they do
i / aType before / after the cursor
I / AType at the start / end of the line
o / OOpen a new line below / above
EscBack to Normal mode

Vim starts in Normal mode, where letters are commands, not text. That's why typing straight away does odd things. Insert mode is the one where keys type.

Get in, type, get out. Staying in Insert mode and moving around with the arrow keys works, but it misses everything Normal mode is good at.

Related

Want all of Vim, in order? Vim Scoops is a free game that starts at h j k l and builds up to macros.

Play the full game