Live data from Hacker News

Switching from Vim to Intellij

browntreelabs.com

1–10 of 263 posts

Re: Switching from Vim to Intellij

#3
I switched from vim to Webstorm, which is based on IntelliJ. I agree with most of this article. IdeaVim is a pretty good vim emulator (although not perfect, but none of them are).

There's something to be said by having sane defaults that do exactly what you want. Probably my biggest issue with vim is you can easily find yourself in no man's land because your setup inevitably becomes uniquely your own. For example I used coc.nvim in vim, and although it worked great overall, I would often find autocomplete text sitting in an unnamed buffer that I would have to clean up. Despite googling like crazy and even asking for help in a couple vim communities, I could not solve this problem that seemingly only I had.

The article touches upon this as well, saying a 50 line tsx file doesn't work for the author in vim. For me a 1000 line tsx file works just fine, so the author managed to dig a unique hole for themselves there too, most likely.

Re: Switching from Vim to Intellij

#8

can you use Intellij like vim? with command mode etc

Yes, there's an official IdeaVim plugin [1]. I'm not sure how deep the rabbit hole goes, I just use it for basic vim goodness, and shy away from advanced stuff. But sure, modal editing, movements, macros, search, etc, are all there.

[1] https://plugins.jetbrains.com/plugin/164-ideavim

Re: Switching from Vim to Intellij

#9

can you use Intellij like vim? with command mode etc

There is a (or more than one?) Vim plugin with fairly good support. However, it is not Vim. Most of the common Vim operations work but others are broken.

For example, I've found the weirdest bugs when using visual block, especially in column mode. It just completely mangles everything.

Post reply on HN