Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Font size control on Window #164

Open
vds2212 opened this issue Jan 20, 2022 · 0 comments
Open

Font size control on Window #164

vds2212 opened this issue Jan 20, 2022 · 0 comments

Comments

@vds2212
Copy link

vds2212 commented Jan 20, 2022

Thanks you very much for the very interesting and useful page about Vim.
I love Vim-Galore :-)

The full font name on Windows some time contains a trailing :cANSI

In such case the :Bigger and :Small command you propose doesn't seems to work fine.
I propose to replace:

command! Bigger  :let &guifont = substitute(&guifont, '\d\+$', '\=submatch(0)+1', '')
command! Smaller :let &guifont = substitute(&guifont, '\d\+$', '\=submatch(0)-1', '')

by:

command! Bigger  :let &guifont = substitute(&guifont, '\(\d\+\)\ze\(:cANSI\)\?$', '\=submatch(1)+1', '')
command! Smaller :let &guifont = substitute(&guifont, '\(\d\+\)\ze\(:cANSI\)\?$', '\=submatch(1)-1', '')

Let me know if you want me to propose you a pull request.

Best regards,
Vivian

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant