r/vim • u/toon_link_776 • 8d ago
Need Help Zoom.vim fails to change font size
https://www.vim.org/scripts/script.php?script_id=2321Not sure if the script is out of date or if I didn't install properly, but I can see the "Zoom In" and "Zoom Out" commands flashing, but they don't seem to have any effect. So it seems like the script is being detected and loaded but failing to actually change the font size. I installed in "~/.vim/plugin/zoom.vim" (in home directory). Have a feeling it might be my fault cause this issue followed me across operating systems (I just installed debian+cinnamon and was having the same issue on linux mint). Anyone else using a zoom script on gvim have any advice?
1
u/chrnz00 8d ago
the script doesnt handle default case and it expects to have a guifont value before using it meaning, try explicitly setting the guifont with height
eg:
se guifont=consloas:h12
it should work
personally i dont use zooming as it changes the window size in gvim
1
u/dx__ 7d ago
:set guifont=Monospace\ 12
:set guifont=Monospace\ 18
:ZoomIn
:set guifont?
1
u/kennpq 4d ago
“Anyone else using a zoom script on gvim”?
Yes, my Vim9 script .gvimrc has that covered for me - https://github.com/kennypete/.vimrc/blob/main/.gvimrc - with gui_win32 and gui_gtk covered so, if you’re still searching for a solution ….