mhinz / mhinz/vim-galore

Font size control on Window

Open
#164 0 comments 1 reaction 0 assignees View on GitHub

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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.