February 21st, 2017, 09:47 AM
vim for Java
Assuming a few things here first:
I'm fast with Vim (Ex SysAdmin, you almost have to be)
Auto-completion bugs me unless I make it custom
IDEs are too visually cluttered to me
The question is, how crazy would I be to try this?
Auto-completion, as I mentioned, bothers me a lot. Even if it knows what I want 8/10 times, that 2/10 is annoying. I've custom configured macros and my own auto-completers before in Vim, and I've found that it forces me to really know a language.
IDEs are incredibly cluttered to me, with too much going on. Vim allows me to focus solely on the code. As far as debuggers and break points, there's probably a tool out there to either interface with Vim or interactively step things.
I know there are Vim plugins, but most are maybe a half-functional copy that tend to break when you try anything fancy like remapping keys.
Admittedly I'm biased, and I consider my mouse partially evil.
Has anyone else really done this? I would assume so as there's an eclim plugin (headless eclipse for vim) among other things. I want to hear the opinions of a few more senior Java types.
February 22nd, 2017, 04:33 PM
I would say it depend at your needs.
For simple task I use notepad++.
I have tried Vim a bit, but unfortunately never got the hangs for its command line.
For IDE, I personally like IntelliJ (community version).
It has the feature I need without any clutter.
The question is, if you (can) add plugin for debug etc, haven't you just turned vim into your own custom-made semi-IDE?
February 23rd, 2017, 12:18 AM
No the idea of using Vim instead of a full-blown IDE for computer-programming isn't crazy at all. Considering the fact the advantages of vim (portability, performance, streamlined-approach to mention a few) and the fact that most of the modern IDEs are riddled with numerous features with very specific uses, it is a viable alternative and possibly a good idea to use Vim for software-development. In fact, I know many people who use Vim for C programming instead of a fully-featured IDE.
Originally Posted by davidvicky
I've never seen anyone using Vim as their Java development environment but that doesn't mean it can't be done. There are several resources out there which discuss on how to customize Vim for development. Look at this stackoverflow thread: Tips for using Vim as a Java IDE? - Stack Overflow and this blog post: Luciano Fiandesio - VIM configuration for happy Java coding for more information. This post: Using Vim as C/C++ IDE | Alexey Shmalko's Personal Blog contains some useful information on how to go about customizing vim for c programming; though it might not be relevant to your situation, it's useful nonetheless.
Originally Posted by davidvicky
In case you ever wanted to consider it, my opinion would be to use Emacs instead. Emacs has more plugins, is far more extensible and more close to a full development environment than vim is. Though it sounds counter-intuitive, with evil-mode Emacs is certainly a better choice for this purpose.
If you haven't already I'd advise you to take a look at evil-mode because when you combine the power of vim with the extensibility (and plugins) that Emacs offers, I'm sure you won't miss an IDE .
I hope it helped. Happy hacking!
Last edited by hexman; February 24th, 2017 at 08:12 AM.
February 23rd, 2017, 09:49 AM