urxvt-resize-font


Ⅰ. 插件描述

URxvt Perl extension for resizing the font

Ⅱ. 基本信息

创建日期:  2012-11-06
使用用户:  1
Github星:  120
插件作者:  Simon Lundström

Ⅲ. 安装方法

使用Vundle管理器安装

在你的.vimrc下添加:
Plugin 'simmel/urxvt-resize-font'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall

对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。

使用NeoBundle管理器安装

在你的.vimrc下添加:
NeoBundle 'simmel/urxvt-resize-font'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall

使用VimPlug管理器安装

在你的.vimrc下添加:
Plug 'simmel/urxvt-resize-font'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall

使用Pathogen管理器安装

在终端中运行以下命令:
cd ~/.vim/bundle
git clone https://github.com/simmel/urxvt-resize-font

Ⅳ. 文档说明

## Installation

  1. Copy resize-font to where URxvt looks for Perl extensions, e.g:
    $HOME/.urxvt/ext/. For the exact path, see the urxvt(1) manual page on

perl-lib.

  1. In your ~/.Xresources file, add resize-font to the
    urxvt.perl-ext-common setting so URxvt loads the extension, e.g:
    urxvt.perl-ext-common: default,tabbed,matcher,resize-font,-tabbed

Configuration

All configuration of resize-font is done in ~/.Xresources.

_Note that this extension requires you to set your font size
through the urxvt.font property._

Fonts

Default font sizes can be specified in pixels, using the pixelsize attribute,
e.g.:

urxvt.font: xft:Inconsolata:pixelsize=12

Or they can be given in points, using the size attribute, e.g.:

urxvt.font: xft:Inconsolata:size=12

Fixed fonts are also supported, for example:

urxvt.font: 7x14

And, finally, XLFD/X logical font description is supported as well, e.g.:

urxvt.font: -*-inconsolata-medium-*-normal-*-14-*-*-*-*-*-iso8859-*

Keybindings

The default keybindings look like this:

URxvt.keysym.C-minus:     resize-font:smaller
URxvt.keysym.C-plus:      resize-font:bigger
URxvt.keysym.C-equal:     resize-font:reset
URxvt.keysym.C-question:  resize-font:show

Keybindings can be modified using the above syntax. For more information on how
to specify keys, see the description of the keysym resource in the urxvt(1)
manual page.

Resize interval

You can also configure the number of steps to take when changing the font size:

URxvt.resize-font.step: 2

添加新评论