Inserting at Line Ends

In this lesson, you will learn how to enter insert mode at the beginning and end of a line.

I
i
-enter insert mode at the beginning of a line
Example
A
a
-enter insert mode at the end of a line
Example
esc
-go back to normal mode
Example












// Welcome to this interactive Vim Playground
unction createGreetingForUser(userName) {
onst greetingForUser = `hello ${userName}!`
eturn greetingForUser
}
onst greetingForGeorge = createGreetingForUse('George')
et greetingForClare = createGreetingForUser('Clare'
onsole.log(reetingForGeorge)
onsole.log(greetingForClare)
 0/15  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.