Live data from Hacker News

Ask HN: Why do you still use Emacs/Vim?

news.ycombinator.com

11–20 of 32 posts

Re: Ask HN: Why do you still use Emacs/Vim?

#11
I use emacs because it's competent as a text editor and doesn't try to be more than that. It works well in conjunction with other Unix style tools.

It's hackable enough to have various plugins built for it that I need to use sometimes. For example, proof general and modes for specific languages.

Also, I like that Emacs is extremely polished. When I am working with someone who uses VS on windows they will typically have projects break for no reason and generally a more buggy experience

Re: Ask HN: Why do you still use Emacs/Vim?

#13

I don't need any of the features of an IDE. If I were a developer, then for certain I would be using one, but not all of us are developers.

Intriguing... What do you do then?

A bit of everything. Some would use the term, "Jack of all trades". Others would just call me a PITA.

Re: Ask HN: Why do you still use Emacs/Vim?

#14
Reliable. Ubiquitous. Lightweight.

Really don’t need the extra overhead of an IDE.

(Actually, I use another text editor on the desktop, but still don’t need an IDE. Vim on the server. Someday someone will make an extension to support both Mac and Vim keybindings together in my text editor, and my life will be complete.)

Re: Ask HN: Why do you still use Emacs/Vim?

#15
There isn't really a better IDE for Idris currently along with it being part of the full Guix experience. Most modern IDEs I've tried tend to either not be supported on platforms I tend to use or come with many features I didn't really ask for. That and they usually are a pain to configure.

If and emacs-like in configurability with less cruft comes around I'll probably switch to it.

Re: Ask HN: Why do you still use Emacs/Vim?

#17
Really fast editing features. I have found there's no real winner between Vi(m) or Emacs - I can use both although I'm more used to GVim.

Shortcuts in either editor allow quick editing compared to non Vi(m)/Emacs editors.

Also, I have a finely tuned tool-chain outside of GVim that (so far) does what I want better than what IDE's provide, depending on the language or target platform.

(I still use IDE's with java, for example)

Re: Ask HN: Why do you still use Emacs/Vim?

#18
Because Vim is like programming text. You have motion commands, you have operators that act on text motion command moves over, and you can specify how many time to repeat the operator. You have programming specific motion commands, so called text objects. This is incredibly powerful. You learn to move around efficiently and you multiply your power, because now you can also make changes, delete, etc using the newly learned motion command.

General form of the command in Vim is: nOm meaning repeat n times operator O acting over motion command m. There are motion commands to move by letters, words, sentences, paragraphs, code blocks, XML/HTML tags etc. There are delete, change, insert, etc operators.

So for example: 3dw says 3 times (d)elete (w)ord (i.e. delete 3 words). di{ says delete everything inside code block.

Vim is also modal, there is distinct mode for editing by issuing commands, and there is insert (also replace, visual etc) mode(s) which is what all other editors have as the only mode. This makes it incredibly powerful, and it is possible to make large sweeping changes with very few key strokes.

Also, vim discourages mouse use. The context switch of your arm moving to the mouse is like CPU doing a cache miss and going to disk to fetch data. It's a huge distraction and if you add time to actually find the mouse pointer, select something etc, it really slows you down compared to Vim.

So, I still (since 1993) use Vim because it makes me really productive and I can edit text really fast with it. With that said, Vim is not an IDE (even though with language server and background tasks support it can be made into surrogate IDE). So, the best of both worlds is to have a good IDE with good Vim support. Jetbrains products have solid Vim support (much much better than say VS Code), so if you need to work with verbose language or work with unfamiliar libraries, IDEs are still useful.

However, I also love the ability to work in plain Vim when I work on code base I know really well and don't need IDE type of help. Vim is also great at working though SSH remotely, tmux etc.

Re: Ask HN: Why do you still use Emacs/Vim?

#19
I recently switched from Vim to Emacs with Evil. Vi motions are really not that hard to get used to. I reached my previous productivity quickly and then was able to move on from there. However, you're not going to get the full IDE experience with vim (by design), so moving to Emacs felt natural to me when I wanted more advanced plugins and I learned that Evil was as good if not better than Vim itself.

I have used IDEs in the past and it was an overall pleasant experience. Visual Studio is okay, XCode is fine, Eclipse is all right, but what bothered me most was that all three were necessary to be able to develop for common platforms. I would find a game changing plugin for one and then want it in another (not happening). The integration between language and editor is the beauty of IDEs and that's the best and the worst thing about them, the reason that they're never going to replace the venerable text editor for me. The other issue is that IDEs discourage experimentation into new languages because using a new language means learning a new editor and getting comfortable with all new tooling. I'd much rather use the same editor for everything, with easy-to-get modes for every kind of language imaginable instead of learning yet another okay-ish IDE for each language.

Re: Ask HN: Why do you still use Emacs/Vim?

#20
post #6

Earlier quoted context omitted.

at work, lots of scripts are in bash script. I tried using fish shell, but it doesn't support bash script well.

But so long as the bash scripts have the shebang, and all should, things should work properly in theory with fish able to load bash when needed, surely? Or is that another in a long line of "yes, in theory, but…"s?

Or you can insulate yourself from bad scripts without the #! by just calling bash then running your script. In my case, since I run so few bash scripts, I use fish (and ksh on BSDs) and call sh when needed.
Post reply on HN