vim - Vim 可以放大和缩小吗?

标签 vim

我发现我们可以在 Emacs 中做到这一点:

emacs zoom in/zoom out

Vim 中的等效项是什么?

最佳答案

The font size of a a console-based vim is determined by the font size of the terminal 。所以改变vim字体大小可以通过changing font size of the terminal来实现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
--------------------------------------------------------------------

关于vim - Vim 可以放大和缩小吗?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18138536/

相关文章:

macos - 从 Mac SSH 到 Ubuntu 服务器时 Vim Solarized 颜色错误

vim - 如何在 vim 中搜索和替换文字符号 "&"

c++ - Vim, C++, 查找成员函数

vim - 如何映射 Shift-Enter

vim :make automatically jumps to first file with error

javascript - 在 vim 中的 javascript 字符串中突出显示 HTML 语法

vim - ultisnips 在 Vim 中给我一条错误消息 : E117: Unknown function: UltiSnips#

php - 从 PHP CLI 打开 Vim

unix - gvim 到 .vimrc 中的自定义高亮组不起作用

vim - 如何使用 vim-rails 覆盖 gf