What are some good plugins for developing Java in VIM?

前端 未结 8 1880
无人及你
无人及你 2021-01-30 14:32

I love vim, but not having things like IntelliSense/Code completion from Eclipse makes it pretty difficult. I know, I know, I should be able to look at method signatures and jav

8条回答
  •  耶瑟儿~
    2021-01-30 15:02

    Don't write Java in Vim — put Vim inside a Java IDE:

    • IdeaVIM for IntelliJ
    • viPlugin or Eclim for Eclipse
    • jVi or ViEx for NetBeans

    I love Vim, but using an IDE for Java is the only way to stay sane. A decent Java IDE will:

    • Show invalid syntax or type errors
    • Show missing JavaDoc
    • Manage import statements for you
    • Highlight unused methods and variables
    • Safely perform powerful refactorings such as moving methods or renaming classes -- (no, search and replace doesn't cut it, I promise)
    • Reformat your code automatically or on-demand

    Vim can't do the above, but you can use all the Vim keybindings in a program which does.

提交回复
热议问题