Everytime I do this:
:%s/```sh/```ctags/gc
I end up with hidden code blocks at the bottom of the screen that I can't see. I tried 'zz' but it does not work. I did read this and this but that's for normal searching. I don't know what mode I'm in when I'm in search and replace ':' to be able to use getcmdtype()
?
I tried this as well??
cnoremap <expr> n getcmdtype() =~ '[@-=:]' ? 'nzz' : 'n'
Ctrl-Y
to scroll the screen down andCtrl-E
to scroll the screen up in the:s/.../.../gc
confirmation dialog