I was a great fan of vim in the past, but I've actually moved away from it in favour of IDEs with other features. There are a couple of reasons...
The most basic reason is that I want to be able to use the feature of the IDEs. And although vim can get a plugin or something for this or that feature, I don't really want to be looking for extensions and tweaks all the time.
The main think though is a kind of non-reason. I've had the realisation that although vim as excellent for writing code, writing code is not the more difficult or more time consuming part of programming. Design, testing, and debugging are more difficult, more important, and more time consuming. The actual typing of symbols just isn't a big deal. So although vim can have some cool ways of making macros and copying stuff and so on, that stuff just isn't really important. Vim makes it really easy to increment a heap of numbers that are in list or something; but my code shouldn't have that kind of stuff in it anyway - the code should be more abstract, without cut-and-paste sections, and without arbitrary constants scattered around needing to be tweaked.
So I guess the bottom line is that as I did more programming, I got better at using vim, but I also found that I cared less about the kinds of power vim gave me, and I cared more about the kinds of power that other IDEs gave me. The power from those IDEs could be added to vim with a bit of work; but so why bother? I don't need the vim stuff anyway. So I don't use vim anymore.
Exactly this. Typing is never the bottleneck, thinking is. I probably spend 5-10x the time thinking about how to write a function than typing it out. And that is why an IDE is much more useful - it helps much more with the visualization of code than any editor.
IDEs help with dynamic languages too. I use Python in Visual Studio, and I get autocomplete, debugging and REPL all inside VS. See Python Tools for Visual Studio. If you use Linux, you can try PyCharm from JetBrains, it is supposed to have similar features, though I have not used it personally.
It is not about being a bottleneck. It is about maintaining the flow of your thought. When you are sufficiently proficient in VIM, you can do things involuntarily, and edit text without breaking the flow of your thought. For example, when you are driving you can zone out and think about other things, because our brain has developed sufficient autonomy for doing that task. In a similar way, the user interface provided by vim is something that is amiable to that kind of autonomous handling by the brain. Using a pointing device like mouse will never be like that.
This is only anecdote; but what he described is exactly my situation.
I used Visual Studio, some Eclipse and JetBrains for many years before trying out vim. Vim is cool and all but it's not really more efficient. What really cool though is the ability to edit without moving the hands.
It's hard to describe, but the experience is comparable to the step you make when you type with hunt-and-peek vs touch-typing. You no longer need to look down for any single thing you do; and that is incredibly liberating.
If IDE works for you, great. IDE works for me too. I just wish that we can somehow make an IDE that you can edit w/o hunt-and-peek.
Sadly, most vim plugins are inadequate. Most of those I tried miss the command mode. I don’t want Ctrl+F or Ctrl+H for search and replace, I want “:%s/foo/bar/g”, and all the nice stuff that comes with it.
IntelliJ's vim plugin has this. It's not perfect, but that's the best middleground I found to get stuff done so far. A real IDE, and a good vim support.
I literally never saw a vim plugin for an IDE that was worth the trouble. My favorite example is always visual block mode: IDEs don't have a concept of that, so IDE plugins can't have a concept of that either. I never have seen a vim plugin that can do visual block mode… :( And it's one of the most important features of vim.
Yup, that's just it. Vim is fun to use and a great text editor (arguably the best text editor) but I rarely find myself needing to edit text. I either need an IDE for code or a WYSIWYG rich text editor for documents, so that leaves vim for light tasks and small scripts.
By contrast, I find that this takes a large portion of my time.
That said, I’m working in research at the moment, and I rarely write code that I had the luxury of planning beforehand. Analysis requires a lot of exploratory programming, most of which lands in the garbage can (read: archived in a separate git branch) at the end of the day.
As a person who is pretty comfortable reading and writing LaTeX: This must be irony, because this software is objectively crap. It's just sadly the only software with decent typesetting, in particular for math, so it's without an alternative for text that needs to look good as the highest priority.
TeX is a fucking chore though. Everything breaks all the time, there's countless bugs everywhere, and the syntax is different everywhere. Fuck, just typing in my native language requires loading multiple modules.
I'll still use it because it gives you a nice looking result, but despite being a vim user, I'm definitely not happy about using TeX.
I do in fact use latex (w/ vim) for math and CS proofs, but if you think you can convince me to use it for, say, an essay (or anything that doesn't include formulas), you'd be more likely to convince me to try emacs. There's no way I'd subject myself to the insanity that is doing basic shit in latex if I don't have a good reason.
The most basic reason is that I want to be able to use the feature of the IDEs. And although vim can get a plugin or something for this or that feature, I don't really want to be looking for extensions and tweaks all the time.
imho, if you start installing a ton of plugins to get vim to behave like you want, you might not want to use vim. if you just want a vi-like editor there are plenty of editors and IDEs that provide a vi-mode, but with a lot more features that people want out of the box (e. g. QtCreator, which is one of the least crappy IDEs for c++ development in general).
I've had the realisation that although vim as excellent for writing code, writing code is not the more difficult or more time consuming part of programming. Design, testing, and debugging are more difficult, more important, and more time consuming.
I agree with you wholeheartedly, but this suggests the opposite of what you're trying to say. using vi(m) allows me to spend more time on those things, and less time on just writing code.
but vim isn't for everyone, and trying to argue that people should use some tool that I like is a waste of time. people should use whatever they are the most productive in.
In general I agree, but there are situations where IDE can't help. The code bases I've been dealing in the last seven years or so are simply too big for an IDE (MS Visual Studio, Eclipse+CDT) to handle, and vim works.
Thank you. I always wondered why some people seem to think that Vim is great for programmers when it just helps you type, copy/cut/paste stuff (great for email writing sure)... the kind of thing that just shouldn't be that important to programmers. Debuggers (with REPL-like code execution within the context of the program - for Java!), Navigation through code, auto-refactoring, function usage analysis, that's the kind of thing that makes me more productive.
I've never gotten nuts with vim. I never felt the need to remain in the editor to perform certain tasks. Hell, I never even open multiple files at once, I always dump back out to Bash when I need another file.
As a side note, I've never found something I wanted that an IDE could do that I couldn't do in the same, less, or negligibly similar amount of time and effort in Bash unless you're using some of the more arcane frameworks (that is, arcane to me). Plus, I mean, let's face it... I'm here to solve puzzles. There is something inherently appealing in figuring out the Bash one-liner to pull all the log messages out of your code base and count the number of times your application has logged each in the past week over a cluster of N machines. Give me the tools and I can give you magic. Give me the tools to arbitrarily improve my process and it's unicorns and rainbows all the way down.
I once got in an argument with a coworker that a developer working in Bash with Vim could work as fast or faster than a developer working in IntelliJ. I'm now prepared, should we have this discussion again, to claim a seasoned Bash developer can work faster.
416
u/blind3rdeye Sep 25 '15
I was a great fan of vim in the past, but I've actually moved away from it in favour of IDEs with other features. There are a couple of reasons...
The most basic reason is that I want to be able to use the feature of the IDEs. And although vim can get a plugin or something for this or that feature, I don't really want to be looking for extensions and tweaks all the time.
The main think though is a kind of non-reason. I've had the realisation that although vim as excellent for writing code, writing code is not the more difficult or more time consuming part of programming. Design, testing, and debugging are more difficult, more important, and more time consuming. The actual typing of symbols just isn't a big deal. So although vim can have some cool ways of making macros and copying stuff and so on, that stuff just isn't really important. Vim makes it really easy to increment a heap of numbers that are in list or something; but my code shouldn't have that kind of stuff in it anyway - the code should be more abstract, without cut-and-paste sections, and without arbitrary constants scattered around needing to be tweaked.
So I guess the bottom line is that as I did more programming, I got better at using vim, but I also found that I cared less about the kinds of power vim gave me, and I cared more about the kinds of power that other IDEs gave me. The power from those IDEs could be added to vim with a bit of work; but so why bother? I don't need the vim stuff anyway. So I don't use vim anymore.