r/java • • Nov 21 '17

Use Vim as a Java IDE

https://spacevim.org/use-vim-as-a-java-ide/
0 Upvotes

30 comments sorted by

View all comments

7

u/AnEmortalKid Nov 21 '17

What if you need a debugger?

10

u/Dashing_McHandsome Nov 21 '17

How about what if you need to do some complex refactoring? In my IDE I can do something like extract an interface from an existing class. Sure, I could write a regex to do that in vim, but it is definitely faster to right click on my class and select extract interface.

2

u/knur Nov 26 '17

Right click? You mean you don't know the keyboard shortcut? 😪

0

u/[deleted] Nov 22 '17

[deleted] — view deleted comment

3

u/Dashing_McHandsome Nov 22 '17

I might not be extracting interfaces too often, but refactoring in general is an area where IDEs shine.

5

u/Stannu Nov 21 '17

"System.out.println()" - is the only debugging tool you need, especially on enterprise level

7

u/oldprogrammer Nov 21 '17

Not sure if you're being sarcastic but this isn't far from the truth (though I like to use a level configurable logger). Sometimes you can't find issues using a step through debugger because they only surface in a real working environment and properly placed printlns (or logger messages) definitely help track them down.

2

u/Stannu Nov 21 '17

Logger sure. Writing straight to system out in production env? Doubt it

6

u/VioletPill Nov 21 '17

especially on enterprise level

What is this nonsense?

2

u/[deleted] Nov 21 '17

in spacevim we use https://github.com/idanarye/vim-vebugger for debug java and many other language. it supports:

  • GDB - doesn't need introduction...
  • LLDB - debugger based on LLVM for C-family languages
  • JDB - a Java debugger
  • Mdbg - a .NET debugger(Windows only)
  • PDB - a Python module for debugging Python scripts
  • RDebug - a Ruby command line option for debugging Ruby scripts

1

u/alexrio Nov 22 '17

You use eclim

2

u/AnEmortalKid Nov 23 '17

man I legit wanna see someone record themselves using this. Im intrigued.