Is there any way to use VS Code key bindings in Vim?
I really like the VSCode linux key bindings, but would like to give a try to Vim without losing productivity.
With all due respect, this question reads like "I drive a truck, now I want to try out a sports car. How can I do so without losing cargo hauling capacity?"
And the short answer is: you can't.
Sure, you can remap all familiar key bindings to Vim but you will have to know them. This means you would have to learn Vim first.
Maybe there's a plugin that does that for you. I wouldn't know.
Anyhow, if you use Vim with VS Code key bindings you will never truly learn Vim so this defeats the purpose.
The strong points of Vim are a modal interface, a very expressive yet short language to modify text and its extensibility through plugins. You cannot reap the first two benefits with VS Code keybindings.
Which leads to the question: why do you want to try Vim? If you're happy and productive with VS Code, stick with it. There's nothing wrong with it (apart from the obvious issue that it isn't Vim). If there was one single best text editor in the world, we wouldn't have thousands of them.
If you're earnest about giving Vim a try, I would recommend you start out with a bare version of it. No plugins, no mappings, no nothing. Once you're comfortable with it, try to write a vimrc
with your settings and give a single plugin a try. After that, you can go crazy with plugins and stuff.
You might consider doing your serious work with VS Code and do a hobby project with Vim.
If you haven't done so, run vimtutor
(should be installed alongside Vim) to see what it's all about.
If you really, really must have them, there's mswin.vim
which will create mappings for the most common Windows shortcuts. It will make Ctrl+C and the like work. See :help mswin.vim
. I wouldn't use it, for the reasons mentioned above.
vi;:q
repetitively for 5 minutes. I often find myself wanting to highlight a section of code and performing some action, for example holding SHIFT +
any combination of [up, down, left, right, pgup, pgdn, home, end]
then commenting out that code with CTRL + /
.
Commented
Apr 23, 2023 at 18:39
*** YES ***
still learning, I have become more Fast and Furious inside of vscode with this extension. Unique Identifier: vintharas.learn-vim.
Although I just checked the developer tools, and it looks like it needs an Internet connection for the instructions that aren't written in markdown.