Also, in case you are using MacVim specifically (since that was mentioned), note that +sound support was merged into Vim, but not yet to the latest release of MacVim. So if you use a public MacVim release you won't have it *yet*. A new release (r175) for MacVim should be made soon-ish in November, hopefully.
On Sun, Nov 13, 2022 at 8:22 AM Lifepillar <lifepil...@lifepillar.me> wrote: > 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 > . > -- -- 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/CAHTeOx9jmo_bpmPjDcL9N2d3PgLSbUXP6-nxSaZ%3DLdPzSu8BsQ%40mail.gmail.com.