Inserting at Line Ends
In this lesson, you will learn how to enter insert mode at the beginning and end of a line.
I and A are the uppercase variations of i and a: hold Shift and they reach all the way to the ends of the line.
I
i
Example
A
a
Example
esc
Example
112345678
// Welcome to this interactive Vim Playgroundunction createGreetingForUser(userName) {onst greetingForUser = `hello ${userName}!`eturn greetingForUser}onst greetingForGeorge = createGreetingForUse('George')et greetingForClare = createGreetingForUser('Clare'
NORMAL
00:00
Mapping Caps Lock to Escape
Most Vim users map their Caps Lock key to Escape. This is because it is much easier to reach the Caps Lock key than the Escape key.
If you are using Mac OS, you can map Caps Lock to Escape by going to System Preferences > Keyboard > Modifier Keys and selecting Escape from the dropdown for Caps Lock.
If you are using Windows, you can use software such as Uncap to map Caps Lock to Escape.