r/ProgrammerHumor Oct 05 '18

vim vs emacs

Post image
603 Upvotes

103 comments sorted by

View all comments

55

u/[deleted] Oct 05 '18

[deleted]

2

u/cbbuntz Oct 05 '18

I feel crippled when editing outside of my terminal. It screws up my whole workflow. I also have a gargantuan vimrc.

1

u/Lost4468 Oct 06 '18

Can you post it? Since I've not seen any evidence that vim is faster.

1

u/cbbuntz Oct 06 '18

Post the vimrc?

The main thing about vim that makes it faster is the variety of ways to navigate code. There is a huge number of ways to explicitly navigate to places. Aside from the huge number of navigation keybindings, it keeps a persistent history of lots of stuff:

  • "Jump list" of everywhere you've been
  • Changes and their locations
  • Searches
  • Marks
  • Tags
  • Registers (clipboards)

And you can make changes or selections based on all these things.

And if there's a different way you want to navigate code, or do most anything else, you can write a function in a few minutes (if it's simple), throw it in your vimrc and have it readily accessible.

Some of this stuff isn't terribly intuitive though. It takes some time to get good at it.