Hacker News new | ask | show | jobs
by throwaway2016a 3721 days ago
Just pointing out... autocomplete of Java code is completely doable in Vim. As are file trees and many things that IDEs offer.

With that said, there are also plugins for many editors that make vim commands work in them. Which is a nice compromise if you like GUIs.

1 comments

It's just not the same as with Eclipse. I'm not sure what it's called or if it has a name, but the Eclipse equivalent to VS Pro's IntelliSense, in which it's actually aware of code that you've previously written in other files or third party libraries, and it pops up as a little list next to what you're typing--is it possible to have that level of functionality in Vim?

It's the actual awareness of code you've previously written, the detection of possible issues before you compile--IDEs tend to read your code with you and help out a lot in many more ways... I suppose it's not "autocompletion" but I was hoping to successfully use that as an umbrella term.

Yeah, it's probably not as good but AFIAK it does know about your other class files and things like that so for most people it will get the job done.

Take it with a grain of salt, though. There are 3 (that I can find) Java auto-complete plugins for Vim and I have no idea if any of them are good. (I don't develop in Java often and when I do it's trivial code so I haven't had a chance to try them)

Yeah, to be honest, I don't know much about Java and Java tools either; I'm just going by what I remember from school. I just assumed that Eclipse has similar functionality to VS Pro, which I know we couldn't replace with Vim.
Eclim is headless eclipse autocomplete in vim, so you get best of both worlds, pretty much.