I've recently started trying to learn Vim by setting up Vim keybindings in VSCode.
One thing I've noticed is that when I open a quote ""
, parenthesis ()
, or bracket {}
, VSCode will helpful add the closing quote/paren/bracket for me.
Since I'm now using Vim keybindings, it's now really frustrating to navigate around. I have to ESC
, navigate around that character, then i
back into insert mode to keep typing. It kinda breaks my flow.
Is there an efficient way to navigate around these characters? Or do I just have to get good at the ESC + l + a
combo?
To my knowledge if you're using the VSCode Vim (which by the question it seems you are doing), you can just press the matching closing bracket.
So if I'm in normal mode and I want to type int[5]
then the following keystrokes should work
iint[5]
(the first i
is to go to insert mode)
And your cursor will be after the closing square bracket.
If you want to do that in regular vim/neovim, I suggest a plugin like AutoPairs.