How do I trigger an autocommand action after the cursor has been idle for a set period?
CursorHold
The CursorHold autocommand event fires once whenever the cursor has been motionless in normal mode for updatetime milliseconds.
CursorHold
The CursorHold autocommand event fires once whenever the cursor has been motionless in normal mode for updatetime milliseconds.
autocmd ++once
The ++once flag, added in Vim 8.
:doautocmd User MyEvent
Vim's User event type lets you define custom events that fire on demand.