On 2022-11-12, Richard Mitchell <rwmitch...@gmail.com> wrote: > I see that sound has been added to macvim!! > > What can we do with it? Are there examples?
Videogames: https://github.com/vim/killersheep :-) 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 /System/Library/Sounds): call sound_playevent("Sosumi") 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, Life. -- -- You received this message from the "vim_mac" maillist. Do not top-post! Type your reply below the text you are replying to. For more information, visit http://www.vim.org/maillist.php --- You received this message because you are subscribed to the Google Groups "vim_mac" group. To unsubscribe from this group and stop receiving emails from it, send an email to vim_mac+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/vim_mac/tkr5ja%24vqp%241%40ciao.gmane.io.