Skip to content

Trying to overwrite vim key "w" and "b" to use moveCamelLeftCommand, but editorTextFocus does not seem to work? #41

@jansviland

Description

@jansviland

Hi

I have been looking for this for years, so was really happy when I found this plugin.

I really want to just overwrite "w" and "b" and always use this feature. I tried this:

// Place your key bindings in this file to override the defaults
[
    {
        "key": "w",
        "command": "maptz.camelcasenavigation.moveCamelRightCommand",
        "when": "editorTextFocus"
    },
    {
        "key": "b",
        "command": "maptz.camelcasenavigation.moveCamelLeftCommand",
        "when": "editorTextFocus"
    },
]

and

settings.json

{
    "editor.fontSize": 13.5,
    "editor.fontFamily": "FiraCode-Retina, Fira Code Retina, Fira Code",
    "editor.fontLigatures": true,
    "editor.fontWeight": "300",
    "vim.camelCaseMotion.enable": true,
}

But, the problem now is that in "write / edit" mode in vim, I still just jump back and forth.

So I essentially can not type the letter w or b

How can I only enable this when in navigation mode in vim?

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions