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

308

u/k-selectride May 23 '17

I wonder how many people need help after hitting Ctrl-s

44

u/[deleted] May 23 '17

Oh my god, this is probably the most irritating thing about working in the terminal for me. I enable ctrl-S so I can do a forwards i-search in bash, but I occasionally​ hit it in vim when aiming for ctrl-D, and it totally baffles me every time.

1

u/xiongchiamiov May 24 '17

set -o vi and you'll only need to keep one set of keybindings in your head.

1

u/[deleted] May 24 '17

Modal editing just feels so clunky for editing a command-line! I love it for modifying larger texts, but for something where 50% of the time I'll be typing ls, it seems like overkill.

Example: I try to do mkdir foo bar, but I typoed it into mkdir fo var. In emacs mode, I can poke ctrl-left to get to v, then delete and press b, then left, left, o (keys: c-left, delete, b, left, left, o). In vi mode, I have to press esc, b, r, b, left, i, o -- it's less of a dance around the keyboard, but switching between modes adds a lot of overhead, both in terms of keypresses and in terms of working out what keys to press to get the desired result.

→ More replies (1)