Following this Vim tip, I've made two mappings to change font size on scroll wheel:nnoremap <C-ScrollWheelUp> :silent! let &guifont=substitute(&guifont,' \zs\d\+','\=eval(submatch(0)+1)','')<CR>nnoremap <C-ScrollWheelDown> :silent! let &guifont=substitute(&guifont,' \zs\d\+','\=eval(submatch(0)-1)','')<CR>But despite the <CR> at the end, on single Ctrl+Scroll I still get Press Enter or type command to continue message, while the command above it is echoed without the <CR>.How can I suppress this message so that multiple successive scrolls just gradually changed the font size without need to press Enter after each scroll event?If it matters, I'm on Linux with GTK2 GUI for gVim.
How to avoid Press Enter or type command after execution of a mapped command?
key bindings
Adding a second <CR> at the end fixes it for me. I have to admit I'm not sure why you need it, though.