3 ms·
I’ve never heard of Esc Esc being an in joke amongst Vim users. And I rarely (never?) hit ESC twice, because it’s obvious when I just tapped ESC, and because of
by addicted 7y ago
I’ve never heard of Esc Esc being an in joke amongst Vim users. And I rarely (never?) hit ESC twice, because it’s obvious when I just tapped ESC, and because of VIM’s speed I can immediately see when things changed.
Is this a GVim/MacVim thing maybe? Is that slower? Or do all these people hitting ESC twice somehow have bad keyboards which don’t often transmit the ESC key signal?
Also, the reason you hit C on calculators twice is because there is actually a reason to hit it in many calculators, and has no connection with Vim, and the difference between the 2 modes isn’t obvious. Hitting C once only clears the current result, but doesn’t clear the previous results. So if you type in 45+ the calculator after hitting C once (assuming you had 46 typed in), the calculator will add 45 to whatever you had originally. OTOH if you hit it twice, in many calculators it will also additionally clear out the previous results, so the 45+ only adds to 0.
- jasode 7y ago>, because it’s obvious when I just tapped ESC, I learned vi (not vim) on old DEC and IBM AIX machines via Telnet (not local GUI). With those more primitive console emulators, the cursor change for different modes wasn't obvious. >Or do all these people hitting ESC twice somehow have bad keyboards which don’t often transmit the ESC key signal? The Esc-double-tap was a very common way to make sure you're not in text insert mode: https://www.google.com/search?q=vi+"press+esc+twice"+command https://www.google.com/search?q=vi+"press+esc+twice"+command For whatever reason (e.g. possibly unawareness of timeoutlen delay causing Esc to behave in unexpected ways), many vi users end up redundantly pressing Esc twice. >Hitting C once only clears the current result, but doesn’t clear the previous results. I thought the newer calculators with dedicated "C" (clear) and "CE" (clear entry) didn't require pressing "C" multiple times. (I just tested this on a Texas Instruments desk calculator with dedicated C & CE buttons and it only requires pressing C once to clear out everything. (But I still press C multiple times out of habit.))
- addicted 7y agoGood to know about the timeoutlen. Also newer calculators have a distinction. But I’ve definitely used older ones where both keys were on the same button (separated by a slash?) but I know I habitually press C twice and it’s likely because the calculator I used most growing up needed you to press C twice for CE.