Live data from Hacker News

Reasons To Give The Vim Text Editor A Chance

makeuseof.com

11–20 of 68 posts

Re: Reasons To Give The Vim Text Editor A Chance

#11
post #5

I love vim, I use it daily, but always for quick text editing. For real coding I need an IDE (netbeans). I never understood how people can code without debugging, profiling, code exploring. I'll probably get voted down, but, what Vim saves me, I wasted it on debugging. So I don't see any advantage using it as my primary editor.

most IDEs these days (intellij, eclipse, visual studio) have pretty kickass vim plugins so you can have your cake and eat it too.

Re: Reasons To Give The Vim Text Editor A Chance

#12
post #7
post #5

I love vim, I use it daily, but always for quick text editing. For real coding I need an IDE (netbeans). I never understood how people can code without debugging, profiling, code exploring. I'll probably get voted down, but, what Vim saves me, I wasted it on debugging. So I don't see any advantage using it as my primary editor.

Most people that use vim also don't use graphical debuggers. I use the "print" statement.

The only downside to print statements is forgetting to remove them and having some obnoxious message committed.

Re: Reasons To Give The Vim Text Editor A Chance

#13
post #5

I love vim, I use it daily, but always for quick text editing. For real coding I need an IDE (netbeans). I never understood how people can code without debugging, profiling, code exploring. I'll probably get voted down, but, what Vim saves me, I wasted it on debugging. So I don't see any advantage using it as my primary editor.

Most of the time, IDEs get these features by calling CLI programs. It's very easy to call CLI programs from VIM/EMACS, and set up bindings to make it very quick. As for code navigation, plugins let you navigate to functions, explore projects / directories, and intelisense.

On the one hand, when developing for a new platform or language, you spend some extra time tweaking on VIM, rather than being able to use the platform developers Eclipse GUI immediately. On the other hand, I've found that being exposed to the command line tools with all their arguments, you are more able to fix problems and automate tasks.

Re: Reasons To Give The Vim Text Editor A Chance

#14
post #7
post #5

I love vim, I use it daily, but always for quick text editing. For real coding I need an IDE (netbeans). I never understood how people can code without debugging, profiling, code exploring. I'll probably get voted down, but, what Vim saves me, I wasted it on debugging. So I don't see any advantage using it as my primary editor.

Most people that use vim also don't use graphical debuggers. I use the "print" statement.

Spewing print statements all over a piece of code is as bad as any other shotgun debugging technique. The reason breakpoints and watches were invented were to reduce reliance on bad ways of doing things.

Re: Reasons To Give The Vim Text Editor A Chance

#16
I've tried hard to love vim, but as a programmer's editor, for C++, it's just awful.

Now, many of the problems are because C++ is awful (hard to parse, for indenting / formatting), and C++ compilers are awful (20 page error messages).

In particular, I tried half a dozen packages and none could tame C++ template error messages, while xcode, visual studio and cde in eclipse all mastered this years ago. A shame.

Re: Reasons To Give The Vim Text Editor A Chance

#17

My reasons for being a vim user a lot more practical than those I see on these "top 10 reasons for trying X": - In the long run, it's faster to learn and use an "efficiency" editor, so I need to learn one of vim, emacs, notepad++, etc. The differences between these are probably negligible for a proficient user. - Of these, only vim will be installed (or vi, which has a big enough overlap that it won't matter to me) o…

Dvorak has actually been shown to really be no better than QWERTY - http://reason.com/archives/1996/06/01/typing-errors/3

Re: Reasons To Give The Vim Text Editor A Chance

#18
I've been tooling around with emacs, having plopped down vimpulse and viper on it. I get slime for clojure, the power of elisp for modifications and so on, as well as my preferred editing style, which is modal. It's not for everyone, but it works for me. It helps that my life isn't terribly busy, and I enjoy taking the time to make everything work together. Of course, caps rebinding is a must for either.

It's been fun, either way. Time will tell if it ends up being practical.

Re: Reasons To Give The Vim Text Editor A Chance

#19
post #5

I love vim, I use it daily, but always for quick text editing. For real coding I need an IDE (netbeans). I never understood how people can code without debugging, profiling, code exploring. I'll probably get voted down, but, what Vim saves me, I wasted it on debugging. So I don't see any advantage using it as my primary editor.

It is actually possible to run full interactive debuggers inside vim. Personally I think Netbeans is a little easier on the eyes when doing this, but being the nerd I am I had to give it a go once I found out it was possible. Here's screenshot of me doing a debugging session of a PHP file using vim/Xdebug on OSX :-)

http://morganpyne.com/img/hacks/debugging-php-with-vim-and-x...

There are several articles out there on using vim as a fully-fledged IDE and setting up interactive debugging: http://www.koch.ro/blog/index.php?/archives/63-VIM-an-a-PHP-... http://tech.blog.box.net/2007/06/20/how-to-debug-php-with-vi... http://colonelpanic.net/2010/08/debugging-php-in-vim-using-v...

Note that these are for PHP development, but I'm sure some rummaging would uncover suport for whatever langugages you work in.

Re: Reasons To Give The Vim Text Editor A Chance

#20
post #14
post #7

Earlier quoted context omitted.

Most people that use vim also don't use graphical debuggers. I use the "print" statement.

Spewing print statements all over a piece of code is as bad as any other shotgun debugging technique. The reason breakpoints and watches were invented were to reduce reliance on bad ways of doing things.

What's good about print statements is that they don't require me to do anything more than once. When you run code in a debugger, there is a lot of manual interaction involved. continue, break, see where you are, think about that, poke around, repeat. With print statements, you run your test, analyze the output, and make the changes. It's all automated except for the analysis step, which is all the human should be doing.

If you need breakpoints, watchpoints, and a GUI to click around in, your code is too complicated and unmaintainable, which is probably why you need a debugger in the first place.

Post reply on HN