mirror of
https://github.com/gryf/zoom.vim.git
synced 2026-02-07 20:15:44 +01:00
master
This is fork of a mirror of http://www.vim.org/scripts/script.php?script_id=2321
Control Vim editor font size with keyboard or mouse.
==============================================================================
Remarks.
This plugin is for GUI only.
Currently, this plugin olny works for fonts, that are defined as a typeface
name AND the size. For example: >
set guifont=DejaVu\ Sans\ Mono\ 12
set guifont=Consolas:h10:cEASTEUROPE
set guifont=Monaco:h11
Putting only name will not work at all, since guessing default font size for
all of the operating system can be difficult.
For Linux, *BSD or other unix-like system it will be assumed, that graphical
environment is an X11 system. Wayland, or other non-X solutions will be added
as they emerged, however wayland-x11 driver may work OOTB.
==============================================================================
Usage:
Normal Mode:
Keypad + ... incerase font size
Ctrl-MouseWheelUp
Keypad - ... decrease font size
Ctrl-MouseWheelDown
Keypad / ... reset font size to initial state
Command-line Mode:
:ZoomIn ... incerase font size
:ZoomOut ... decrease font size
:ZoomReset ... reset font size to initial state
==============================================================================
Installing
1. Copy the zoom.vim script to
$HOME/vimfiles/plugin or $HOME/.vim/plugin directory.
Refer to ':help add-plugin', ':help add-global-plugin' and
':help runtimepath' for more details about Vim plugins.
Or just use pathogen (https://github.com/tpope/vim-pathogen) or simmilar
solution
2. Restart Vim.
Description
Languages
Vim script
100%