On 2022-10-06, Arun <
finda...@gmail.com> wrote:
> 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.