In Vim8.0 under Linux, the O command in normal mode is delayed

  • what is the problem

In Vim8.0 of Linux, in normal mode, using O to create a new line, there is often a delay: after pressing O, you can see that O first appears at the current cursor position, after about 0.5-1 seconds, and then a new line just created.

  • Solution

参考:Delay before 'O' opens a new line?

Responder

As can be seen from the most voted answer, there are 3 possible solutions to the delay problem:

  1. Close esckeysoption.set noesckeys
  2. Reduced timeoutlenvalue, recommended less than 1000,
  3. Use ^creplace ^[.

I solved the problem with just the first method. The delay when using O is gone.

  • reason

In vim, under nocompatibel, the option esckeysis enabled by default. When the esckey ^[value is typed, the continuous use of the escsum Okey will cause a delay.

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=324900576&siteId=291194637