Font size control on Window
Nobody has claimed this yet.
- Dominant language
- Vim Script
- Stars
- 18k
- Forks
- 627
- PR merge metrics
- No merged PRs in 30d
Description
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
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Locate the Vim-Galore page containing the Bigger and Smaller command snippets and review how Vim on Windows represents GUI font names with a trailing :cANSI. Update the documented commands so the font size is changed before that suffix, then verify the examples work with both suffixed and unsuffixed font names.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- vim
- Domain
- documentation
- Issue type
- Bug
- Difficulty
- 1/5
- Estimated time
- Under an hour
- Activity status
- Stale
- Clarity
- Clearly specified
- Newbie friendliness
- 45/100