Skip to content

Font size control on Window #164

Open
@vds2212

Description

@vds2212

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions