What is the consensus on productivity with Vim? I have thought about trying out the keyboard only approach, but haven't wanted to invest time in it yet. When I see people on YouTube using Vim it slightly feels like there's a whole lot of keypresses happening, but not a lot is actually gained compared to using a mouse or even frequently it seems it takes a while to do something that is much quicker with the mouse. I u…
There is no objective evidence that Vim makes you a more productive programmer. There is no evidence that avoiding a mouse makes you a more productive programmer. Use the editor you want! Vim is faster at some things and slower at some things. The main drawback of all the keypresses you see is that Vim is an imperative editor: You have to tell Vim how to edit text by glueing together lots of small commands.* IDEs are…
Oh that’s easy though, friend :)
:!git mv % new-name
> IDEs are declarative editors, you say "rename this variable" and they do it.
Most NeoVim setups I’ve tried recently include LSPs with code actions, so now I just hover a variable and do “ra” and I get a little popup window asking me for a new name. I type it, hit enter, and the reference is updated in all relevant files.