From 6c9ff792546b07fd5721adf7c17bd8e7dc212669 Mon Sep 17 00:00:00 2001 From: Marco Hinz Date: Wed, 6 Jan 2016 04:20:44 +0100 Subject: [PATCH] Tips: quickly change font size in GUI --- CHANGELOG.md | 1 + README.md | 9 +++++++++ 2 files changed, 10 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 5262a04..5291dfe 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -15,6 +15,7 @@ All notable changes to this project will be documented in this file. - Tips: [Quickly add empty lines](README.md#quickly-add-empty-lines) - Tips: [Quickly edit your macros](README.md#quickly-edit-your-macros) - Tips: [Quickly jump to header or source file](README.md#quickly-jump-to-header-or-source-file) +- Tips: [Quickly change font size in GUI](README.md#quickly-change-font-size-in-gui) - Tips: [Don't lose selection when shifting sidewards](README.md#dont-lose-selection-when-shifting-sidewards) ## [1.0] - 2016-01-06 diff --git a/README.md b/README.md index 7c25dbe..a8b9ce9 100644 --- a/README.md +++ b/README.md @@ -22,6 +22,7 @@ - [Quickly add empty lines](#quickly-add-empty-lines) - [Quickly edit your macros](#quickly-edit-your-macros) - [Quickly jump to header or source file](#quickly-jump-to-header-or-source-file) +- [Quickly change font size in GUI](#quickly-change-font-size-in-gui) - [Don't lose selection when shifting sidewards](#dont-lose-selection-when-shifting-sidewards) #### [Debugging](#debugging-1) @@ -409,6 +410,14 @@ autocmd BufLeave *.h mark H **NOTE**: The info is saved in the viminfo file, so make sure that `:set viminfo?` includes `:h viminfo-'`. +#### Quickly change font size in GUI + +I think this was taken from tpope's config: +```viml +command! Bigger :let &guifont = substitute(&guifont, '\d\+$', '\=submatch(0)+1', '') +command! Smaller :let &guifont = substitute(&guifont, '\d\+$', '\=submatch(0)-1', '') +``` + #### Don't lose selection when shifting sidewards If you select one or more lines, you can use `<` and `>` for shifting them