Shortcut

Vim Repeat the Search the Other Way Shortcut

The Vim shortcut to repeat the search the other way is N on Windows. It's the same on Mac.

Quick Answer

Windows
N
Mac
N
Web
Not confirmed yet
VimShortcut

Repeat the Search the Other Way

Windows
N

Goes to the previous match.

Learn More

How to repeat the search the other way in Vim

  1. Open Vim and go to where you want to repeat the search the other way.
  2. Press N on Windows or N on Mac.

Vim Repeat the Search the Other Way Shortcut for Windows

Press N.

Vim Repeat the Search the Other Way Shortcut for Mac

Press N.

Vim Repeat the Search the Other Way 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 repeat the search the other way shortcut?

On Windows, press N. On a Mac, press N.

Is there a Mac shortcut to repeat the search the other way in Vim?

Yes: N.

Does it work in Vim for the web?

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

Official source · How we verify