-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Support Meta/Super/Option instead of Control Key for Ctrl Key based vim Operations #3301
Comments
I haven't used a Linux machine in awhile, but I recall them understanding the
I'm not really sure of a good way of doing this. At the moment, we don't bind to the |
Hi jpoon, |
Linux machines understand Alt and Ctrl Key. Apart from that, Windows key is also understood as Meta Key which usually is mapped to system related functions like 'WinKey+L' to lock the screen |
My use case is different, but I would love to be able to use the Meta/Super keys as a modifier for keybindings as well. If I understood @vignesh0025 correctly, just binding Meta/Super and exposing it as a usable key would fix his issue as well, since VSCode can handle it, I was expecting to be able to use those for configuring vscodevim too. |
I would like an option to use ALT instead of CTRL for vim keybindings, that way they wouldn't class with any vscode or my window manager bindings. I've done this by rebinding one at a time, but I can imagine this would be a nice option for others. |
Similar question, but is it possible to instead change the default VSCode "ctrl key" to a user customizable option? I like to map save from "ctrl-s" to "meta-s" on Linux as much as possible. It seems @vignesh0025 's change modifies the Vim mappings instead? |
I've just moved from Mac to Linux for a new job. VSCodeVim on a Mac was particularly good because the common OS & VSCode combinations were on the Cmd key, leaving the Ctrl key mostly free for the Vim extension. Now the common OS & VSCode combinations on Linux use Ctrl, there are lots of OS & VSCode <> Vim conflicts. There are very few existing Alt+[a-z] mappings in VSCode. So if VSCodeVim could have a setting to change its Ctrl mappings to Alt (similar to @vignesh0025's changes, but a user setting), that would solve those problems in one go. (OTOH you'd have different combinations to those in actual Vim, but that's a tradeoff) Tangentially related: #2713 Thanks for the awesome extension! |
Thanks for all the great efforts. 🙏 Looking forward for the ability to binds |
My preferred rebind would be: VSCodeVim: CTRL i.e. All Vim CTRL commands use CTRL. All VSCode CTRL commands remapped to Shift-CTRL. This should avoid clashing with existing bindings to Meta and Alt. |
Slightly different use case here. I just switched from Linux to a Mac, and hitting the Control key feels like I'm breaking my pinky (whiny, I know). I'd like to switch to the Command key for Vim bindings even though they'll conflict more with native Mac bindings. It's just faster and more comfortable for me. Thank you for the extension! |
Is this feature going to be implemented? Pretty much most of |
+1 from me! On the other hand, is there a built in way of remapping the |
Problem
Many important shortcuts are mapped to Control Key in VSCode by default and at the same time, Control Keys play a important role in Vim Operations. I can't ditch control keys in favour of VSCodeVim or the other way also. I got this issue as I am moving from Mac to Linux where is no Command Key and Ctrl key like options.
Idea
So instead of completely relaying on Ctrl keys, Meta/Option keys can be used for Vim operations instead of control keys. Like for Example, Meta+s to split the editor instead of "Ctrl+s".
Alternatives
I tried to implement this myself but it seems like all shortcuts are hard coded in package.json. Besides, I couldn't understand the code due to lack of documentation. If this idea is not taken or seems useless, please just guide me where to start so that, I would implement it someday as per my need.
Additional Context
I got this problem while switching from Mac to Linux based OS (Debian). In Mac, Almost all VSCode
operations use Command Key and Control key is left unused. In that scenario, VsCodeVim taking full control over Ctrl Key seemed very very effective. I am not losing any functionality of vim and at the same time, all VSCode specific shortcuts are working via Command Key.
The text was updated successfully, but these errors were encountered: