3 ms·
So, I use the Vim layer in IntelliJ. While it’s true that the IDE is doing a little bit of the repetitive typing work, there’s still things that are more comfor
by graypegg 3y ago
So, I use the Vim layer in IntelliJ. While it’s true that the IDE is doing a little bit of the repetitive typing work, there’s still things that are more comfortable with vim commands. To give an example you mentioned:
> Why are you doing all this typing? If you update a variable name or a method signature and the rest of the code doesn't automatically update itself as far as possible, why is this?
I use refactoring tools a ton! Rename Symbol works great. I’ll press the IDE combo for Refactor this (C-t) then the vim combo to, for example, add a suffix to the name that’s now highlighted by the IDE (wi SuffixNameHere<CR>)
It’s not like it’s hard to do that by clicking the end of the word with the cursor, or moving to it with the arrow keys. But it’s so much more comfy to me, once you have a few movements in your head you can precisely communicate “go THERE” to your editor which is worth it to me.
Bonus: @ macros! It’s so useful, even in IDEs, to be able to record (qx) and run (@x) a macro from your keyboard, while typing, if you notice that you’re repeating the same task. An IDE will help with renaming, removing, or re-signaturing… but not with the most annoying work, like numbering things or repeating blocks.