Shortcut

Vim Return to the Previous Position Shortcut

The Vim shortcut to return to the previous position is `` on Windows. It's the same on Mac.

Quick Answer

Windows
``
Mac
``
Web
Not confirmed yet
VimShortcut

Return to the Previous Position

Windows
``

Jumps back to where you were before the last move.

Tip: Press two backticks in a row.

Learn More

How to return to the previous position in Vim

  1. Open Vim and go to where you want to return to the previous position.
  2. Press `` on Windows or `` on Mac.

Tip: Press two backticks in a row.

Vim Return to the Previous Position Shortcut for Windows

Press ``.

Vim Return to the Previous Position Shortcut for Mac

Press ``.

Vim Return to the Previous Position 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 return to the previous position shortcut?

On Windows, press ``. On a Mac, press ``.

Is there a Mac shortcut to return to the previous position 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