3 ms·
How do you handle having to change a function's parameters, for instance? In vim, you just have your cursor inside the (...) and do `ci)`, which is (c)hange (i
by stnmtn 5y ago
How do you handle having to change a function's parameters, for instance?
In vim, you just have your cursor inside the (...) and do `ci)`, which is (c)hange (i)nside `(, which instantly deletes all the test inside the (...) and you can type that stuff out easily
For a trackpad, don't you have to manually select all that text, hit delete, then start typing again? Or is there a better way I'm not thinking of
- rendall 5y agoSo. Many. Shortcuts. And, if you use it as an extension to your IDE, say for VSCode, you can still use your pointer. Delete to line's end: d$ Delete to next blank line: d] Replace current character: r Surround the next 3 words with quotes: ys3w" (non standard, but out-of-the-box on VSCode) On and on
- stnmtn 5y agoYep, using Vim in VSCode is just about everything I could ever want