On 2022-11-12, Richard Mitchell <rwmit...@gmail.com
> I see that sound has been added to macvim!!
> What can we do with it? Are there examples?
You may add typewriter sounds on key presses:
autocmd InsertCharPre * call sound_playfile("/path/to/soundfile")
With sound_playevent() you may easily play system sounds (the sounds in
Personally, I would really like Vim to play a sound on search wrap—but
that does not seem easy to do.
If you use Vim to build, compile, or launch (asynchronous) jobs, you may
use sounds to signal when a job is over.
Another (more or less extravagant) idea: combine with timers to make
a “Pomodoro” (a time span for focusing on something): launch a timer
that plays a sound 20–25 minutes from the current time.
Generally speaking, I think that the main use for sounds is hook on some
autocommand or on some callback from asynchronous jobs or timers.
Hope this helps,