question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

otherModesKeyBindings does not work in Visual mode

See original GitHub issue

Is this a BUG REPORT or FEATURE REQUEST? (choose one): Bug Report

What happened: Remapping a key in vim.otherModesKeyBindings works in Command mode but not Visual mode

What did you expect to happen: I expected the key to behave the same in both modes.

How to reproduce it (as minimally and precisely as possible):

"vim.otherModesKeyBindings":  [
        {
            "before": ["s"],
            "after": ["<Nop>"]
        }
]

You’ll notice that the key is unbound in Command mode, but still active in Visual mode.

Environment:

  • Extension (VsCodeVim) version: 0.12.0
  • VSCode version: 1.24.1
  • OS version: OSX 10.12.6

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:9 (6 by maintainers)

github_iconTop GitHub Comments

3reactions
dylanscottcommented, Jun 19, 2018

It looks like otherModeKeybindings was renamed normalModeKeybindings in this commit.

This is the second time I’ve had my keybindings broken by an update and required me to read look through the commit history for this extension to fix them. It’s very frustrating. I don’t understand why you wouldn’t make a change like this in a backwards compatible way that wouldn’t break people currently using otherModeKeybindings.

1reaction
jpooncommented, Jun 19, 2018

@dylanscott this was mentioned in our changelog – https://github.com/VSCodeVim/Vim/blob/master/CHANGELOG.md#v0130-2018-06-18. I also put out a notice on our Slack that this was coming. If you have any ideas on how to better communicate these things, would love to hear suggestions.

We decided not to make it backwards compatible as that setting doesn’t really make any sense anymore. If we did make it backwards compatible we would then have remappers for insert, normal, visual, and other, where “other” would mean normal and visual for backwards-compat, and that makes it super confusing.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Vscodevim: Vim emulation for Visual Studio Code. - Gitee
Just like real vim, your editor will now be in Normal mode, which is reported to VSCode's status bar. From here, all your...
Read more >
vi visual mode doesn't work - Super User
I'm running Ubuntu with GNOME Terminal, and the local copy of vi works fine, so I don't see how this could be a...
Read more >
Visual mode in vim not working - Stack Overflow
Now I have moved to Windows 7 and still use PuTTY to access the same server. The problem is that visual mode has...
Read more >
CHANGELOG.md ... - GitCode
Find and replace all occurances in current line does not work #4067; Commentary does not work in visual block mode #4036; Change operator...
Read more >
<Leader> not working in visual mode : r/neovim - Reddit
Should leader key (in my case, space) be working in visual mode? If not, any good ideas on how to activate it? For...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found