You could try a hack by calling a function that checks for v:warningmsg and
reset it, in a "statusline" invoked function. Something like:
---
fu! CheckWrap()
if v:warningmsg =~# "^search hit [BT]"
"Ring bell
exe "norm! \<Esc>"
endif
let v:warningmsg=""
endf
"call CheckWrap using standard statusline
set statusline=%<%f\ %h%m%r%=%-14.(%l,%c%V%)\ %P%{CheckWrap()}
---
The above should ring the bell (provided you did not disable it) on search
wraps.
Regards,
-Arun
On Thu, Oct 6, 2022 at 12:33 PM Lifepillar <[email protected]> wrote:
> When performing a search, it's easy for me to miss the "search hit
> BOTTOM, continuing at TOP" message because my attention is focused on
> the matches. For this reason, I'd like a sound of my choice to be played
> when the search wraps (using +sound). Is this possible?
>
> Thanks,
> Life.
>
> --
> --
> You received this message from the "vim_use" 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_use" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/vim_use/thnahj%24rq5%241%40ciao.gmane.io
> .
>
--
--
You received this message from the "vim_use" 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_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/vim_use/CAJUkyiEVPrJc7Eu05sU-bO-g0qi%3DjPi2c_1fJXUs3SNWqgX7cg%40mail.gmail.com.