Shortcut

Vim Insert Before the Cursor Shortcut

The Vim shortcut to insert before the cursor is i on Windows. It's the same on Mac.

Quick Answer

Windows
i
Mac
i
Web
Not confirmed yet
VimShortcut

Insert Before the Cursor

Windows
i

Starts typing at the cursor position.

Learn More

How to insert before the cursor in Vim

  1. Open Vim and go to where you want to insert before the cursor.
  2. Press i on Windows or i on Mac.

Vim Insert Before the Cursor Shortcut for Windows

Press i.

Vim Insert Before the Cursor Shortcut for Mac

Press i.

Vim Insert Before the Cursor Shortcut for Vim Web

We haven't confirmed a Vim Web shortcut for this yet.

Related Keyboard Shortcuts

Related Guide

Frequently asked questions

What is the Vim insert before the cursor shortcut?

On Windows, press i. On a Mac, press i.

Is there a Mac shortcut to insert before the cursor in Vim?

Yes: i.

Does it work in Vim for the web?

We haven't confirmed a web version shortcut for this yet.

Official source · How we verify