Shortcut

Vim Go to the First Non-blank Character Shortcut

The Vim shortcut to go to the first non-blank character is ^ on Windows. It's the same on Mac.

Quick Answer

Windows
^
Mac
^
Web
Not confirmed yet
VimShortcut

Go to the First Non-blank Character

Windows
^

Moves past any indentation to the first real character.

Learn More

How to go to the first non-blank character in Vim

  1. Open Vim and go to where you want to go to the first non-blank character.
  2. Press ^ on Windows or ^ on Mac.

Vim Go to the First Non-blank Character Shortcut for Windows

Press ^.

Vim Go to the First Non-blank Character Shortcut for Mac

Press ^.

Vim Go to the First Non-blank Character Shortcut for Vim Web

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

Related Keyboard Shortcuts

Frequently asked questions

What is the Vim go to the first non-blank character shortcut?

On Windows, press ^. On a Mac, press ^.

Is there a Mac shortcut to go to the first non-blank character in Vim?

Yes: ^.

Does it work in Vim for the web?

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

Official source · How we verify