In addition to post about configuring VIM in my favourite IDEs, such as PHPStorm and VisualStudio, I want to describe about installing it for VSCode. It’s kinda trivial, but I want to add some additions and remarks.
Ok, let’s begin.
Installation:
Go to plugins and find a plugin named “Vim”
Also, I really advice you to read official plugin manual. It’s full of useful information and configuration tips.
For me, the most useful parts were:
Adding alias Esc <-> JJ
1 2 3 4 5 6 7 8 9 10 11 |
"vim.insertModeKeyBindings": [ { "before": [ "j", "j" ], "after": [ "<Esc>" ] } ], |
Adding tabs by pressing Shift + > together:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 |
"vim.insertModeKeyBindings": [ { "before": [ ">" ], "commands": [ "editor.action.indentLines" ] }, { "before": [ "<" ], "commands": [ "editor.action.outdentLines" ] }, ], |
And, also, one regular config:
“vim.useSystemClipboard”: true,
which allows you to share VIM and system OS clipboard