otherModesKeyBindings does not work in Visual mode
See original GitHub issueIs 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:
- Created 5 years ago
- Comments:9 (6 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
It looks like
otherModeKeybindings
was renamednormalModeKeybindings
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
.@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.