Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I love Vim but never use it. 99% of the time I'm editing code in an IDE that knows about the language semanticly and knows how to refactor (extract/move/rename) code. It would be incredible if Vim/Neovim had a plugin that could do the same refactorings as IntelliJ.

At the moment the ease and frictionlessness of refactoring like this (instead of manually moving text objects around) beats Vim's productivity gains. It's a shame because I still often think in terms like "ci(" when using an IDE.

I've tried Vim emulators in IDEs (not recently, mind) but they're not the same.

Anyone have any suggestions to get the best of both worlds?



I'm a relatively happy user of Vim emulators in IDEs (mostly in VS / IntelliJ / Eclipse); e.g. I might do a cw / ciw / ct[first letter of next word in variable name] and then hit the IDE's shortcut for rename refactoring. Simple macros for tedious repetitive tasks. For this, I find emulators sufficient, a kind of "best of both worlds".

I suspect my usage of Vim itself is fairly basic, making this workable. What issues did you find with this approach?




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: