sponsor Vim development Vim logo Vim Book Ad

fontsize : Adjust Gvim font size via keypresses

 script karma  Rating 48/28, Downloaded by 5492  Comments, bugs, improvements  Vim wiki

created by
Michael Henry
 
script type
utility
 
description
******************************************
Fontsize - Adjust font size via keypresses
******************************************

Fontsize provides key mappings for adjusting the font size in Gvim.  The
initial mappings launch a "font size" mode in which single keypresses are used
to adjust the font.  This mode ends after a timeout or when the user presses
any key not defined in the mode.

For example, using the default key bindings, pressing <Leader><Leader>+ will
enter "font size" mode and increase the font size by one.  Once in the mode,
pressing the "+" key repeatedly will increase the font size by one for each
additional press.  Additionally, a [count] may be provided to change the font size
by larger increments.

See documentation in doc/fontsize for installation and usage instructions.

Developed by Michael Henry (vim at drmikehenry.com).

Distributed under Vim's license.

Git repository:   https://github.com/drmikehenry/vim-fontsize
 
install details
 

rate this script Life Changing Helpful Unfulfilling 
script versions (upload new version)

Click on the package to download.

package script version date Vim version user release notes
fontsize-0.5.0.zip 0.5.0 2023-08-20 7.0 Michael Henry Add support for Neovim GUIs (at least nvim-qt and neovide).
fontsize-0.4.1.zip 0.4.1 2016-11-16 7.0 Michael Henry Add support for GTK3-based GUI.
fontsize-0.4.0.zip 0.4.0 2015-10-04 7.0 Michael Henry Add configurable time-out settings for font mode (including the ability to never time out).
fontsize-0.3.4.zip 0.3.4 2015-04-30 7.0 Michael Henry Do not load plugin without GUI running (thanks to Anatolii Sakhnik).
fontsize-0.3.3.zip 0.3.3 2014-04-05 7.0 Michael Henry - Add support for [count] (thanks to Ingo Karkat).
fontsize-0.3.2.zip 0.3.2 2014-02-14 7.0 Michael Henry Minor update:

- Add autoloaded guard.
- Fix paste error in documentation (thanks to hfs for the bug report).
fontsize-0.3.1.zip 0.3.1 2013-10-03 7.0 Michael Henry Documentation reorganization.
vim-fontsize-0.3.0.zip 0.3.0 2013-10-02 7.0 Michael Henry - Switch default key bindings to <Leader><Leader>x instead of <Leader>xx.

- Convert to bundle-based installation instructions.

- Use getfontname() instead of reading 'guifont', allowing fontsize to work
  when 'guifont' was not set or was set to a comma-separated list of fonts
  where the first font was not valid.

- Use "(fontsize)" string for prettier-looking 'showcmd' output.
fontsize-0.2.1.vba 0.2.1 2013-09-24 7.0 Michael Henry Properly restore cpoptions.
fontsize-0.2.0.vba 0.2.0 2009-10-23 7.0 Michael Henry Version 0.2.0    Date    2009-10-21                 *fontsize-changelog-0.2.0*

  - Changed <Leader>== to enter "font size" mode without changing the
    font size.

  - Fixed regex for win32 and others to not require colon after size field
    (e.g., "fontname:h12" works, don't need "fontname:h12:cANSI").  Added
    regex support for other platforms.

  - Added g:fontsize_encoding feature to handle different encodings for
    &guifont and &guifontwide.

  - Handles empty &guifont better now (but cannot change font size in that
    case).

  - Added documentation sections for TODO, ChangeLog.
fontsize-0.1.0.vba 0.1.0 2009-10-11 7.0 Michael Henry Initial upload
ip used for rating: 142.132.191.50

If you have questions or remarks about this site, visit the vimonline development pages. Please use this site responsibly.
Questions about Vim should go to the maillist. Help Bram help Uganda.
   
Vim at Github