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-Yto scroll the screen down andCtrl-Eto scroll the screen up in the:s/.../.../gcconfirmation dialog – Christian Brabandt Apr 20 '21 at 08:03