Just like CursorHold, but in Insert mode. [..]
Run Code Online (Sandbox Code Playgroud)
然后从:help CursorHold:
CursorHold When the user doesn't press a key for the time
specified with 'updatetime'.
[..]
Run Code Online (Sandbox Code Playgroud)
默认updatetime值为4000(4秒); 你可以把它改成1秒钟:
set updatetime=1000
Run Code Online (Sandbox Code Playgroud)
请注意,非常低的值可能会降低Vim,因为某些CursorHold命令可能比较昂贵.它也用于写交换文件