r/programming • • May 23 '17

Stack Overflow: Helping One Million Developers Exit Vim

https://stackoverflow.blog/2017/05/23/stack-overflow-helping-one-million-developers-exit-vim/
9.2k Upvotes

1.1k comments sorted by

View all comments

Show parent comment

9

u/goldfather8 May 23 '17 edited May 23 '17

Spacemacs bindings with avy-jump to C-j:

Select some text at the top, scroll halfway down and select some new text and the next three occurances of it. And the copy all of that to the bottom, but indent everything.

g g SPC v C-j (first two letters of word) SPC v e S (do edit) > G

Next challenge. Select the end of one row, the middle of the next, and the first half of the third column. Add in some text to each of those places. Indent all of that text by one additional tab. Comment out the first and last line.

$ q q (add text) q (B until middle) @q 0 @q g g SPC ; ; G SPC ; ;

This may seem complicated if you aren't used to the bindings but to me and others its trivial and would be finished before you even got a quarter way through the commands in sublime, with less mental overhead.

I've used sublime and it is no comparison, multi-cursors or not.

I find it interesting how many people that don't know vim, emacs, (insert tech here) that have such strong negative opinions towards it.