Is it possible to zoom in and out of vim?

As in the title. I found in emacs that we can do this

emacs zoom in / out

I did not find the equivalent in vim.

+6
source share
2 answers

You can use the methods described here: http://vim.wikia.com/wiki/Change_font_size_quickly to create bindings for this. (Although I'm surprised that gvim does not support this out of the box, MacVim does with CMD ++ )

+8
source

The font size of the console-based virtual vim is determined by the font size of the terminal . Therefore, changing the vim font size can be achieved by changing the font size of the terminal from which vim is called:

|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 -------------------------------------------------------------------- 
+9
source

Source: https://habr.com/ru/post/951362/


All Articles