VSCodeVim / Vim

:star: Vim for Visual Studio Code
http://aka.ms/vscodevim
MIT License
13.86k stars 1.31k forks source link

can not go back to last definition easily after press gd #7332

Open xzou999 opened 2 years ago

xzou999 commented 2 years ago

In real vim, after install plugin vim-go and set shotcut for :GoDef to "gd", shotcut ":GoDefPop" to "Ctrl-t", when press "gd" in some function, you can jump to its definition, then you can just press "Ctrl-t" to jump back to the older location of your jumping start point. can VSCodeVim do the similar thing?

w-cantin commented 2 years ago

Hello,

Pressing Ctrl-O while in normal mode jumps back to previous jump location. This includes jumps made with gd. Maybe that could do the trick?

xzou999 commented 2 years ago

Ctrl-O seems work when add """: true" in "vim.handleKeys": item in settings file (I set "vim.useCtrlKeys": false in my settings file at default). Thank you!