仓库指标
- Star
- (12,664 star)
- PR 合并指标
- (平均合并 9天 13小时) (30 天内合并 7 个 PR)
描述
Is your feature request related to a problem? Please describe. In vim, I used to have g-d going to the local definition or the first occurrence in a function for the word under the cursor. However, in VSCode-Vim I found that g-d is liking to the global definition. I already have "CTRL+]" going to the global definition, so I'm wondering how I could have "g-d" going to the local definition / the first occurrence in a function.
Describe the solution you'd like Under NORMAL mode, "g-d" goes to the local definition / first occurrence in a function of the word under the cursor.
Describe alternatives you've considered Search for the word under the cursor with "*" and use "[[" to go to the "{" bracket of a function and press "n" to do the search again.
I found that in the quickref.txt "g-d" "goto local declaration of identifier under the cursor" and "g-D" "goto global declaration of identifier under the cursor". But the current VSCode-Vim doesn't seem to work as it stated :(