This plugin for gvim adds the ability to change font size (and therefore window size too) using the same methods used in most web browsers, terminal emulators and some other graphical text editors.
I may add Mac support if this plugin attracts any interest.
Mapping | Action |
---|---|
Ctrl + = | Increases text size |
Ctrl + - | Decreases text size |
Ctrl + 0 | Resets text to original size |
Ctrl + mousewheel | Resize text |
In terminal vim or neovim the plugin exits and doesn't do anything.
Installation can be done via a plugin manager.
For vim-plug it's:
Plug 'eggbean/resize-font.gvim'
If you don't use a plugin manager you can just place the script in...
~/.vim/plugin
on Linux, or...
%USERPROFILE%\vimfiles\plugin
on Windows.
This should work with all modern Unicode fonts, but if you find one which doesn't work tell me and I'll modify the regex. This is only likely to occur with Windows.