There's been a few cases where it would be convenient to hook into the search and replace behavior for certain things. For example, I have the following mapping in my vimrc:
nnoremap n nzzzv
Which centers the screen every time you advance to the next match. This works well but does not apply when doing a %s//c command. Is there a way to hook into when the user selects one of the confirmation options y/n/q/q/l/etc. so that you can trigger commands?