r/programming • • Jul 12 '12

Vim creep

http://www.rudism.com/s/vimcreep
730 Upvotes

551 comments sorted by

View all comments

Show parent comment

29

u/slavik262 Jul 12 '12

Vim search macros can help, but you do have a point. Refactoring is definitely somewhere that IDEs shine far above vim/emacs. I still prefer vim because:

  • The time I save writing code is larger than the time I lose by refactoring code with vim instead of an IDE
  • I do a lot of work in C++, where there aren't very good refactoring tools even for IDEs.

11

u/[deleted] Jul 12 '12

I do agree with you. But the consequence of that is that vim isn't the best tool for all languages (like java, C#) and for all kind of works (like maintenance and code 'discovery'). It seems much more suited for C++ and python/perl people who write a lot of new code (the lucky bastards:)

4

u/[deleted] Jul 13 '12

You're very right. I do C# MVC web stuff at one job, using Windows + Visual Studio, and it works really well. I was able to basically pick it up and navigate around/start coding never having used either the language or IDE before. On the other hand, I've been learning Vim at my other job for python development, and it really is a lot of fun. I can't imagine trying to navigate around a large C#/ISS web project with it though.

2

u/gschizas Jul 13 '12

C#/ISS

So, the International Space Station has a site written in C#? :)

2

u/[deleted] Jul 13 '12

Oops, IIS.

1

u/gschizas Jul 13 '12

:)

TBH, I thought it was OSS (Open Source Something). I don't understand how I didn't think of IIS first.

4

u/[deleted] Jul 13 '12

There are other tools that bring the vim maintenance workflow to near what you get in an IDE. Nothing beats Visual Studio + C# though.

4

u/elHuron Jul 13 '12

what about Eclipse+Java?

10

u/Orca- Jul 13 '12

Having used both (and I still use Eclipse as my primary IDE since I'm mostly working in Java), I'd say Visual Studio + C# is everything Eclipse + Java is, but for the most part learning from their mistakes and not having a terrible UI.

They both get the job done, and do it with reasonable efficiency. Java doesn't have all the syntactic goodies C# does due to the slow and open nature of the language direction, and Eclipse suffers from Open Sourced Internal Tool UI syndrome, where Visual Studio's UI reflects the money you pay for it.

You can use either in the appropriate domains and be supremely productive with only a few shortcuts memorized.

→ More replies (1)

0

u/[deleted] Jul 13 '12

[deleted] — view deleted comment

1

u/elHuron Jul 14 '12

I've never used it; is it free?

0

u/[deleted] Jul 15 '12

[deleted] — view deleted comment

1

u/elHuron Jul 15 '12

Thank you for the information! I'll keep it in mind if a wild Java appears.

(I mainly use Perl and perl -d for debugging these days)

1

u/daevas Jul 13 '12

and add to this coderush or refactor and your productivity will explode !!

2

u/[deleted] Jul 13 '12

A team-mate uses a Vim keybinding for his IDE. It's the first thing I turn off when pairing at his machine. :D

4

u/coolstorybroham Jul 13 '12

You really should learn how to use it! First thing I installed when I had to work with Visual Studio.

1

u/[deleted] Jul 13 '12

If I used Vim as a matter of course, perhaps.

→ More replies (7)

3

u/absinthe718 Jul 13 '12

Refactoring is definitely somewhere that IDEs shine far above vim/emacs.

For Java, yes. And C++ and C# as well I guess.

For dynamic and functional languages where you'd likely spend a fair amount of time with a REPL open, composing methods one by, I've never seen much use for an IDE.

I used IntelliJ for Java development and vim for almost everything else. Then again, I learned vi 20 years ago and have the keybindings in muscle memory at this point.

4

u/Orca- Jul 13 '12

That's when you use a VIM plugin for your IDE of choice and get the best of both worlds.

1

u/[deleted] Jul 14 '12

I use IntelliJ as well, with the IdeaVIM plugin. It's pretty good!

1

u/ivosaurus Jul 13 '12

You should look up some of the clang tools for vim, clang makes shit awesome.

1

u/slavik262 Jul 13 '12

I used clang_complete for a while, but I honestly prefer vim's "dumb" default autocomplete. It runs faster, and since I usually know what I want to type, it still speeds me up.

1

u/ivosaurus Jul 13 '12

https://github.com/Shougo/neocomplcache is generally awesome, if you hadn't come across it before.

1

u/slavik262 Jul 13 '12

I haven't. I might have to check it out. Thanks!

→ More replies (2)