Anyway to replace IntelliJ with vim/emacs + comman

2019-05-27 10:48发布

问题:

I was looking to replace some of the most frequently used settings I have for IntelliJ with vim (or emacs, if needed) & command line tools.

I use

  • Auto-import of libraries
  • Deployment of various services in Jetty with debugging (I use breakpoints a lot)
  • Go to declaration, implementation, and tests.
  • JavaLint (?) basically something like PyFlakes for Java which shows warnings, errors in-line

I like IntelliJ but have been having a ton of problems with it lately and I miss not being able to use VIM.

回答1:

http://eclim.org promises to let you use Eclipse as a headless backend for vim. So you could work entirely in vim, but have all the Java features of Eclipse (which are probably similar enough to IntelliJ Idea to meet your needs).

(That said, I've never gotten it to work, but it sounds good every time I hear about it.)



回答2:

I use JDEE with emacs + maven for builds (i use pom-parser.el to better integrate maven with emacs). To your points:

  • Auto-import of libraries
    • built into JDEE
  • Deployment of various services in Jetty with debugging (I use breakpoints a lot)
    • pretty sure you can deploy with maven + jdibug is a pretty decent emacs java debugger
  • Go to declaration, implementation, and tests.
    • TAGS is built into emacs, and GTAGS (aka global) is even better
  • JavaLint (?) basically something like PyFlakes for Java which shows warnings, errors in-line
    • you can use the eclipse batch compiler with flymake for on-the-fly compilation errors/warnings


回答3:

You can try this IdeaVim. It's a Vim emulation plug-in for IDEs based on the IntelliJ platform.