Shortcut
Vim Go to the Local Declaration Shortcut
The Vim shortcut to go to the local declaration is gd on Windows. It's the same on Mac.
Quick Answer
- Windows
- gd
- Mac
- gd
- Web
- Not confirmed yet
VimShortcut
Go to the Local Declaration
Jumps to where the name under the cursor is defined in this file.
How to go to the local declaration in Vim
- Open Vim and go to where you want to go to the local declaration.
- Press gd on Windows or gd on Mac.
Vim Go to the Local Declaration Shortcut for Windows
Press gd.
Vim Go to the Local Declaration Shortcut for Mac
Press gd.
Vim Go to the Local Declaration 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 local declaration shortcut?
On Windows, press gd. On a Mac, press gd.
Is there a Mac shortcut to go to the local declaration in Vim?
Yes: gd.
Does it work in Vim for the web?
We haven't confirmed a web version shortcut for this yet.
Official source · How we verify