Vim可以进行放大和缩小吗?

17
我发现我们可以在Emacs中做到这一点: emacs放大/缩小 在Vim中有相应的功能吗?
4个回答

19

控制台版 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
--------------------------------------------------------------------

正如Ask Ubuntu上所指出的,xfce4-terminal自2016年的这个提交以来支持与GNOME终端和Terminator相同的快捷键。 - Adam Katz

12

1
但这个只适用于gtk2版本的vim,不是通用版本。 - Chenming Zhang
我的MacVim 8.0可以通过按下CMD + =来放大字体,按下CMD + -来缩小字体。您可以在“编辑”>“字体”下查看更多选项。 - Peter Højlund Palluth
如何设置默认大小? - VimNing

0
您可以使用“Ctrl -”缩小页面,使用“Ctrl + Shift +”放大页面。

0

网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接