Hacker News new | ask | show | jobs
by mjfl 1924 days ago
I started with emacs and never learned vim. What am I missing?
9 comments

Vi's sense of composability. For example, 'd' is the delete command, but what does it delete? It deletes across a motion. What is a motion? Could be any movement mode supported by the editor, which ranges from simple cursor motions to motions involving words or blocks to forms of searching to raw line number jumps.

So, once you learn a vi command, you can use it with all the motions you already know, and once you learn a motion, you can use it with all the commands you already know.

The other aspect, that is more insidiously useful: vi is almost everywhere, and will easily fit on an embedded system. It's a rare server that doesn't have it, either. This is definitely vi, not vim, when I say this, though.

I've used vim for more than 20 years, but lately I'm finding that now that `prettier` and `black` can just reformat code wholesale, I don't have to care as much about the precise tiny edits that vim is so good at. And when I'm not worried about those things, I start to notice that modern IDEs have much smarter syntax checking and whole-project search than I've ever seen in vim, even with plugins. So I think I'm moving on.
Yep, for me the peak right now is an IDE that has a great VIM plugin. You get the best part of vi (the insane productivity and wrist health increase that is modal editing) with all the best parts of a modern IDE.

I don't feel like I'm missing anything from a VIM-only setup in any way right now

then you might have missed coc.vim (vscode's full LSP for vim)
I can relate. Going from Emacs to evil-mode (not pure vim) has been a bliss. Text and code editing feels almost like playing a game.
Totally agree about it feeling like playing a game. It’s probably because of the combos and just how fast things can be when you move around! I use neovim but I’m sure the experience we have is the same.
For me, using VSCode felt neat. Learning and using nvim felt fun. Learning and using doom emacs feels exciting.
A decent text editor
Modal editing.

Command mode lets you manipulate text using a full keyboard as shortcuts. Depending on setup this can reduce the amount of chording you do.

Visual mode lets you select text. By character, line, or region/block. I find this easier than emacs selection.

Insert mode what you use to enter text.

Well he didn't say he was using Emacs with the default keybindings.

Emacs' evil-mode is used by many Emacs users who prefer modal editing...

I am conversant with both. You are not really missing anything. I use vi when emacs is not already installed and I need to quickly edit a file. That's the main difference, for me. vi is already there, but emacs has to be installed.
I used vim for a decade and tried to switch to vanilla emacs. I didn't like code navigation in emacs at all.

After a few weeks of fighting it, I switched to evil-mode emacs and was pretty happy since then.

A different way of doing the same thing for text editing, on which both are great. I use evil-mode just because of muscle memory from vim.

I have been using a jetbrain IDE recently and surprisingly, the vim plugin is pretty decent. So knowing vim lets me use both the IDE and emacs with less friction.

Primarily the fact that vim is EVERYWHERE and starts up instantly with zero config, so it's great when you find yourself on J. Random Server and need to edit something. It's good to know some basic basics.
I'd like to ask the opposite question as someone who knows Vim but not Emacs. What am I missing if I'm only concerned with text editing?
Nothing, if you are only concerned with text editing.
Org mode. Not sure if that’s relevant for you because I don’t know what “text editing” includes for you. But it’s a killer feature
The ability to travel thru time with :earlier & :later

(edit like a timelord!)

stellar speed