- 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?
As can be seen from the most voted answer, there are 3 possible solutions to the delay problem:
- Close
esckeys
option.set noesckeys
- Reduced
timeoutlen
value, recommended less than 1000, - Use
^c
replace^[
.
I solved the problem with just the first method. The delay when using O is gone.
- reason
In vim, under nocompatibel, the option esckeys
is enabled by default. When the esc
key ^[
value is typed, the continuous use of the esc
sum O
key will cause a delay.