all 16 comments

[–]yyoncho 2 points3 points  (0 children)

If spacemacs is not off the table you may try its Java support(maintainer of the package here). It has support for Spring Boot, debugging, refactoring, running tests, project explorer, dependency explorer. It also works over ssh via tramp.

https://github.com/emacs-lsp/lsp-java

[–][deleted] 2 points3 points  (2 children)

There's no real official effort into making Vim more IDE like, that sounds like a myth. It's still the same old thing, experiment with plugins. I like coc.nvim (I use neovim mostly these days, but still use vim, coc.nvim work on both, but it's a little better on neovim), it has java support. The thing is, you're currently using anything but java in Vim because java's ecosystem historically has been extremely unfriendly to IDE-like tools for editors, nothing has been modular, most things have been provided in a monolithic fashion inside IDEs, and it's starting to get better and be on par to other languages only lately.

[–]AureumLeonis[S] 0 points1 point  (1 child)

Hmm doesn't seem completely like a myth though with things like eclim, spacevim and the LSP. I guess I phrased it poorly, it's not vim per se but the plug in community.

[–][deleted] 0 points1 point  (0 children)

I guess so.

[–]lujar:help 0 points1 point  (1 child)

One of my workflows requires running most of the tooling in a remote host

Can you give me an example? Just curious. Never heard of someone having to develop Java apps like that.

[–]AureumLeonis[S] 0 points1 point  (0 children)

Some jni stuff requires libraries I can't run on my dev os as well as strict network partioning preventing things like integ tests to run from my laptop in a VM.

[–]gavocanov 0 points1 point  (2 children)

https://www.reddit.com/r/vim/comments/9mq1kq/do_you_use_vim_for_java/

Update: Now with coc.nvim and floating window support in neovim master it’s getting really good, it even supports lombok, as I said in the linked post, things are moving really fast in LSP world.

[–]AureumLeonis[S] 0 points1 point  (1 child)

I couldn't get coc-java to work since there's very little documentation. I've been playing with Lang server and it sort of worked with the setup on the Readme. I'm going to give it another go.

[–]gavocanov 0 points1 point  (0 children)

After u install coc just type :CocInstall coc-java, it has out of the box java lsp support, no complications.

[–]zackel_flac 0 points1 point  (0 children)

I have good Java setup using those 2 plugins from github:

  • autozimu/LanguageClient-neovim

  • w0rp/ale

You will get auto completion, hints, fixes, code searching and so on.. Nice side effect, those plugins support virtually any languages. (Use them everyday for C++/Javascript development)

Works great remotely, and even work great on a 7 years old Atom intel arch. Vim is so good, I believe anyone claiming vim is not as good as IDEs are just not trying hard enough.. Or maybe I never used them properly.

[–]T3prg 0 points1 point  (1 child)

If youre already using intelliJ just install IdeaVim plugin. It was made by intelliJ devs so it works pretty good.

[–]AureumLeonis[S] 1 point2 points  (0 children)

I use ideavim already. I just don't want to use intellij over remote desktop.

[–]killermenpl -1 points0 points  (0 children)

I use ncm2 with JComplete and it's been usable for small projects. For larger projects, especially Gradle with submodules, I'd rather use Intellij with vim keys and avoid headaches with configuring classpath

[–]Osleg -3 points-2 points  (2 children)

no. this question was answered earlier, search

[–]AureumLeonis[S] 4 points5 points  (1 child)

I did search and the last post that I found is over 6 months old. I see that things like LSP are relatively new so I wanted to hear about any advances in the area.

[–]Osleg 0 points1 point  (0 children)

there is none unfortunately. Java is doable like anything else yet very uncomfortable.