Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a toggle highlight to match vim plugin? #9

Open
bedge opened this issue Sep 11, 2018 · 0 comments
Open

Add a toggle highlight to match vim plugin? #9

bedge opened this issue Sep 11, 2018 · 0 comments

Comments

@bedge
Copy link

bedge commented Sep 11, 2018

The vim plugin multihightlight has a m that maps to a toggle highlight. Would be nice to have that here too so the experience would be closer to the original vim behavior.

I mapped this as close as I could. Maybe this will be of use to other vim users wanting a similar keybinding:

    "vim.normalModeKeyBindingsNonRecursive": [
        {
            "before": ["<leader>", "m"],
            "commands": [
                "highlightwords.addHighlight"
            ]
        },
        {
            "before": ["<leader>", "M"],
            "commands": [
                "highlightwords.removeHighlight"
            ]
        },
        {
            "before": ["<leader>", "N"],
            "commands": [
                "highlightwords.removeAllHighlights"
            ]
        }
    ],
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant