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
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.