Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

hit the Escape key?

escape hit key
0
10 Posted

hit the Escape key?

0
10

This is normal behavior. If your window flashes, then you’ve got the visual bell on. Otherwise, you should hear a beep. Vim (and most, if not all, other implementations of Vi) needs a timeout to tell the difference between a simple escape and, say, a cursor key sequence. When you press a key in normal mode (and even in insert mode) and that key is the beginning of a mapping, Vim waits a certain amount of time to see if the rest of the mapping sequence follows. If the mapping sequence is completed before a given timeout period, the mapping for that sequence of keys is applied. If you interrupt the mapping, the normal actions associated with the keys are executed. For example, if you have a mapping defined as “:imap vvv Vim is great!!” and you type “vvv” quickly, the “Vim is great!!” will be inserted into your text. But if you type “vv v” then that is what will put into your text. This is also true if you type “vvv” too slowly where “too slowly” is longer than the value for t

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123