Tips: quickly change font size in GUI

This commit is contained in:
Marco Hinz 2016-01-06 04:20:44 +01:00
parent 5ba88040a4
commit 6c9ff79254
2 changed files with 10 additions and 0 deletions

View File

@ -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 add empty lines](README.md#quickly-add-empty-lines)
- Tips: [Quickly edit your macros](README.md#quickly-edit-your-macros) - 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 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) - Tips: [Don't lose selection when shifting sidewards](README.md#dont-lose-selection-when-shifting-sidewards)
## [1.0] - 2016-01-06 ## [1.0] - 2016-01-06

View File

@ -22,6 +22,7 @@
- [Quickly add empty lines](#quickly-add-empty-lines) - [Quickly add empty lines](#quickly-add-empty-lines)
- [Quickly edit your macros](#quickly-edit-your-macros) - [Quickly edit your macros](#quickly-edit-your-macros)
- [Quickly jump to header or source file](#quickly-jump-to-header-or-source-file) - [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) - [Don't lose selection when shifting sidewards](#dont-lose-selection-when-shifting-sidewards)
#### [Debugging](#debugging-1) #### [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 **NOTE**: The info is saved in the viminfo file, so make sure that `:set
viminfo?` includes `:h viminfo-'`. 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 #### Don't lose selection when shifting sidewards
If you select one or more lines, you can use `<` and `>` for shifting them If you select one or more lines, you can use `<` and `>` for shifting them