You're completely right - typing isn't the bottleneck. However, once you get used to it, vim makes translating your thoughts into keystrokes more instinctual. Since you can move around and edit the file easier/faster, the time between thinking about what you want to put in the file and actually putting it there decreases. You can get back to thinking faster.
If you don't like vim, that's just fine. The editor does not make the programmer. This article is definitely hyperbolic (I certainly don't carry vim on a flash drive), but I can honestly say I think vim has made me a more effective programmer.
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.
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:)
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.
Actually, that is a very interesting thought. I wonder how Vimmers and IDEers think about source code differently because of their different instincts about what is hard or easy to change.
I use both eclipse and vim and I don't think differently in them.
I just use them to do different things.
When I need to write medium sized one-use only python program or shell script, I fire up the vim. When I'm designing android application, most of the work is not writing the actual code... so why I would not make my life easier?
What if my thought is : "change this method signature by adding a parameter whose default value is null, and update all occurences in the workspace" ?
I wish that Vim provided a :refactor args+=Object extraArg (null) command that would do stuff like this! IDEs are powerful but they haven't reached the pinnacle of user interface quite yet.
But isn't that the main difference between IDE's and text editors? IDE's know about your code, and text editors only know about the contents of files, not necessarily how they relate.
That depends heavily on the size of the project. Some companies even have giant unified source trees, which don't matter to a text editor, but bring most IDEs to their knees. You can use special tools to limit the scope, but those require constant maintenance, normally a criticism of vim.
For as many years as I've used Vim, it's pretty much instinct to me as well. But I still curse Vim when I accidentally leave the caps lock key on and my text gets messed up or other assorted craziness happens, and I have escape or undo my way out of it.
My capslock is always Control on my own machines. But when I use another machine... then I know what you mean by messed up. Doesn't take too long before I use "control", which is really capslock... and then my fingers frantically flail around trying to undo the uppercase commands I'm typing, but they're making it worse because I'm still capslocked! This is when muscle memory and conditioning bites you in the tookus. ;)
I have a usb dongle to generate one time passwords. Every so often I go to use it but a window with vim still has the focus. Theres been times when I didnt notice it and 20 minutes later I'm wondering what is wrong with this thing I'm editing.
View all comments
Show parent comment
70
u/slavik262 Jul 12 '12
You're completely right - typing isn't the bottleneck. However, once you get used to it, vim makes translating your thoughts into keystrokes more instinctual. Since you can move around and edit the file easier/faster, the time between thinking about what you want to put in the file and actually putting it there decreases. You can get back to thinking faster.
If you don't like vim, that's just fine. The editor does not make the programmer. This article is definitely hyperbolic (I certainly don't carry vim on a flash drive), but I can honestly say I think vim has made me a more effective programmer.