如标题所示。我在 emacs 中发现我们可以做到这一点
我没有在 vim 中找到等价物。
基于控制台的 vim 的字体大小由终端的字体大小决定。因此,可以通过更改调用 vim的终端的字体大小来更改 vim 字体大小:
|Terminal emulators | + font size |- font size
--------------------------------------------------------------------
| xterm |Shift + Keypad Plus(+)|Shift + Keypad Minus(-)
| |Or control + mouse right click to choose the
| |desired font size.
--------------------------------------------------------------------
| GNOME terminal |Control+Shift+Plus(+) |Control + Minus(-)
| |Do not use keypad. |Do not use keypad.
--------------------------------------------------------------------
| Terminator |Control+Shift+Plus(+) |Control+Minus(-)
| |Do not use keypad. |Do not use keypad.
--------------------------------------------------------------------
| Konsole |Control+Mouse Wheel |Control + Mouse Wheel
| |Scroll Up, or |Scroll Down, or
| |Control + Plus(+) |Control + Minus(-)
--------------------------------------------------------------------
| lilyterm | Control + Plus(+) |Control + Minus(-)
--------------------------------------------------------------------
| xfce4-terminal | Right Click/Preferences/Appearance.
| | No keyboard or mouse shortcut.
--------------------------------------------------------------------
| lxterminal | Edit/Preferences/Style.
| | No keyboard or mouse shortcut.
--------------------------------------------------------------------
| mlterm | Control + Right click to bring up settings.
| |Encoding tab/Font Size.
| | No keyboard or mouse shortcut.
--------------------------------------------------------------------
| kterm | Control + Right click to bring up font size menu.
--------------------------------------------------------------------
|rxvt-unicode(urxvt)|Issue printf command inside terminal window.
| |Eg: printf '\33]50;%s\007' "xft:DejaVu Sans Mono-8"
| |running this command inside flying vim is not
| |working. One has to quit vim and issue the commmand
--------------------------------------------------------------------
您可以使用此处详述的方法:http: //vim.wikia.com/wiki/Change_font_size_quickly创建键绑定来为您执行此操作。(虽然我很惊讶 gvim 不支持这个开箱即用,但 MacVim 支持CMD+ +)
建议安装guifont++
插件
https://www.vim.org/scripts/script.php?script_id=593
它的默认绑定是:
+ increases font size
- decreases font size
= restores font size
您可以使用“Ctrl -”进行缩小,使用“Ctrl + Shift +”进行放大。