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

nnoremap #4542

Closed
teyter opened this issue Feb 5, 2020 · 2 comments
Closed

nnoremap #4542

teyter opened this issue Feb 5, 2020 · 2 comments

Comments

@teyter
Copy link

teyter commented Feb 5, 2020

I am trying to achieve the effect of this setting from vimrc in vscodevim

nnoremap : :

nnoremap ; :

This enables me to press the ; key to enter command mode in one key stroke as opposed to two i.e. just ; rather than Shift + ;

I tried doing this in settings.json with this:

"vim.normalModeKeyBindings": [
        {
            "before": [":"],
            "after": [":"]
        }
    ]

    "vim.normalModeKeyBindings": [
        {
            "before": [";"],
            "after": [":"]
        }
    ]

To no effect. Is there a way to achieve this?

@cvaldev
Copy link
Contributor

cvaldev commented Feb 6, 2020

I think this is what you're looking for:

    "vim.normalModeKeyBindings": [
        {
            "before": [";"],
            "after": [":"]
        }
    ]

@teyter
Copy link
Author

teyter commented Feb 6, 2020

That did it. Much obliged.

@teyter teyter closed this as completed Feb 6, 2020
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

2 participants