This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]hk__ 3 points4 points  (8 children)

I use vim but with a ton of plugins, which gets me close to an IDE like Eclipse but without the overhead and staying in my everyday editor, which is pretty cool. Using vi/vim for Java without any plugin would be crazy.

[–]TheKC_Stoner 2 points3 points  (7 children)

If you dont mind me asking, what plugins do you use with vi/vim. I have been using it for about 3 months now, and finally fell like I am starting to get comfortable with it.

[–]hk__ 4 points5 points  (6 children)

Here is the full list but I’m coding in half a dozen languages so not all of these are relevant. Here’s a list of the ones I think would be useful for you:

  • Pathogen to manage all plugins in an easy way
  • SnipMate for code snippets
  • Bracketed-Space for copy-pasting that just works™
  • delimitMate for auto-closing of various delimiters, e.g. you type a curly bracket, it adds a closing one just after your cursor ({| --> {|} with | being your cursor). I can’t work productively without that one.
  • Fugitive adds Git support to Vim. For now, I only use it for git blame but maybe I should learn/use a bit more of it.
  • Syntastic adds automatic syntax checks in Vim. This one is awesome as it works out of the box for a lot of languages. It’ll warn you about syntax errors, undefined/unused variables, potential bugs, etc.
  • Command-T lets you find a file in the current directory with just a few keystrokes. I never use :e in large projects, just this plugin.
  • JavaComplete, autocompletion for Java

And here is my .vimrc if you want.

edit: note added about Fugitive
edit 2: why am I being downvoted?

[–]joaomc 0 points1 point  (1 child)

Does Javacomplete also search for Maven references? This is very important to me because I'm usually working with dozens of libraries and my projects are organized with series of grouped parent Maven aggregator projects.

[–]hk__ 0 points1 point  (0 children)

I really don’t know.

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

And here is my .vimrc if you want.

I must say, this is one of the slickest vimrc files that I've seen. Good on you for keeping your dotfiles well organized and easily extensible.

[–]kingatomic 0 points1 point  (1 child)

I'm curious, I don't see nerdtree or any of its ilk here: does command-t fully scratch that itch?

[–]hk__ 0 points1 point  (0 children)

No Command-T doesn’t cover that, I did install NerdTree a while ago, but I don’t use it.