Vim: need support for ["g","d"] mapping

Created on 24 Oct 2017  ·  7Comments  ·  Source: VSCodeVim/Vim

Use the keyboard key ["g","d"] to highlight the words that are pointing at the current mouse, and use the keypad n to search down, shift + n to search up.

Most helpful comment

@cnlg You should be using * to do that. Try rebinding gd to *.

All 7 comments

@cnlg You should be using * to do that. Try rebinding gd to *.

Thank!

@cnlg gd is a lot better in vscode than it is in vim. gd in vim should be go to definition, but it doesn't work well.

@Chillee understood,VScode how to use shortcut keys to switch between status bars?

would be great if gd popped up the find all reference S+F12 when the cursor is on the definition

How to custom ["g", "d"] plz? I want to use it with 'goto-symbol-stack'. After some actions I can't go back to the original position with the default go to definition.

    "vim.otherModesKeyBindingsNonRecursive": [
        {
            "before": ["g", "d"],
            "after": [],
            "commands": [
                {
                    "command": "extension.goto-symbol-stack.goToSymbolDeclaration",
                    "args": []
                }
            ]    
        },
        {
            "before":["<C-t>"],
            "after":[],
            "commands": [
                {
                    "command": "extension.goto-symbol-stack.goPrevOnStack",
                    "args": []
                }
            ]
        }
    ]
Was this page helpful?
0 / 5 - 0 ratings

Related issues

typeoneerror picture typeoneerror  ·  3Comments

elithrar picture elithrar  ·  3Comments

triztian picture triztian  ·  3Comments

gerardmrk picture gerardmrk  ·  3Comments

ghost picture ghost  ·  3Comments