3 ms·
> I get the job done going mouse to keyboard to mouse to keyboard but it's definitely not optimal. I've seen the rise of Vim popularity from the sidelines, I l
by eitland 5y ago
> I get the job done going mouse to keyboard to mouse to keyboard but it's definitely not optimal.
I've seen the rise of Vim popularity from the sidelines, I learned it at the same time as I learned eclipse, continued using vim while learning Sublime Text, IntelliJ, Netbeans and VSCode and I still use Vim.
Here are my thoughts:
If only people had spent half the time they waste on learning enough Vim to impress others learning and setting up VS Code, eclipse, IntelliJ (or tjeir language variant), NetBeans - or even I guess even though I don't like it myself - Visual Studio (the old one).
Please, please, please: at least for those who use modern languages with IDE support, take the time to consider learning the basics of an IDE.
The correct way to refactor moden code isn't to learn to study Vim for years to do it in half the time or with half the shortcuts, but to navigate to the correct line (down, down down), the correct place (2 x ctrl + arrow right) mark the code in question (5 x shift + arrow down to get the majority of it, then shift end to the end of the line) and ctrl + shift + p or something, extra(ct variable), name it and finished.
And this is just the straight forward way for someone knowing nothing but standard text navigation on Linux/Windows: if someone spends a fraction of the time some use on Vim they'll find that there are shortcuts to expand selection to scope built into modern IDEs by default.
The above can be shortened to:
- four times arrow down (we go into the middle of the mess)
- ide specific shortcut (or your chosen shortcut, they can be exported and imported) to expand selection to scope
- ctrl + shift + p to open command palette
- ext (since it is near the top of the list anyway), rename, done
Edit: there exist one good reason to use emacs and vim - they won't be integrated with Github and dumbed down over night, see for example https://news.ycombinator.com/item?id=29461226 https://news.ycombinator.com/item?id=29461226
Personally I rather learn IntelliJ, Netbeans, eclipse and VS Code somewhat fluently though.