|
|
|
|
|
by crubier
1853 days ago
|
|
Don't worry, you're not alone. 100% of the people I've ever saw using Vim / Neovim spend much longer "calculating" their next command than they would spend just doing in with CMD-D in VSCode. It's frustrating to see. CMD-D in VSCode does 95% of what's needed, with no mental burden. But hey, you can't "brag" that you "know VIM" if you use VSCode... |
|
Right, there is mental overhead to calculate moves but often times you can extract out patterns into intuitive key mappings once you've solved the problem once.
For example, this is taken my vimrc:
The basic idea here is I can either move the cursor on top of a word or select some text, hit s*, type what I want to change that text to and then hit dot (.) as many times as I want to repeat the change to the next match. It's like being able to use multiple cursors except without needing multiple cursors and I also get to see the result applied once before I start applying it to multiple things. It's also possible to skip matches using existing Vim mappings (n).I use the above all the time to make changes in spots where I would have used multiple cursors with VSCode.