vim-fontmanager


Ⅰ. 插件描述

Font manager for Vim

Ⅱ. 基本信息

创建日期:  2013-07-22
使用用户:  8
Github星:  9
插件作者:  Tom Cammann

Ⅲ. 安装方法

使用Vundle管理器安装

在你的.vimrc下添加:
Plugin 'takac/vim-fontmanager'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall

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

使用NeoBundle管理器安装

在你的.vimrc下添加:
NeoBundle 'takac/vim-fontmanager'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall

使用VimPlug管理器安装

在你的.vimrc下添加:
Plug 'takac/vim-fontmanager'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall

使用Pathogen管理器安装

在终端中运行以下命令:
cd ~/.vim/bundle
git clone https://github.com/takac/vim-fontmanager

Ⅳ. 文档说明

Font Manager

Font manager for Vim

  • List useable fonts
  • Quickly change fonts
  • Quickly change font style and/or size

Only support for Linux and Windows. Does NOT currently support Mac OSX.

Please do help and contribute to fix this :) Please contact me if you have any questions.

Usage

This only works in a vim GUI - you can't set fonts from Vim in terminal

To list avaliable fonts

:FontList

This will create a new window and display a list of fonts. This may take a
second to work out which fonts can be used.

Bitstream Charter
Cantarell
Century Schoolbook L
Courier 10 Pitch
DejaVu Sans Mono
DejaVu Sans
DejaVu Sans,DejaVu Sans Condensed
DejaVu Sans,DejaVu Sans Light
Dingbats
...

Just hit ENTER on the font you want to use and it will be loaded. Press q to
quit the window.

Or you can use

:Font Dingbats

Which will change your font to Dingbats. The font will be autocompleted.

Change size. This command has a helpful autocomplete, suggesting sizes close to
the current size.

:FontSize 14

Now your using size 14 font. Easy.

Change style:

:FontStyle bold
:FontStyle bold italic
:FontStyle italic bold
:FontStlye

The last one clears the style. Again it will complete style for you.

Fontmanager also frees up some .vimrc configuration. You can set this in your
.vimrc to load a font when you start vim.

let g:fontman_font = "DejaVu Sans Mono"

This means no more fiddling with escaping with spaces and correcting the format
to match your OS. This font will be loaded when fontmanager starts.

let g:fontman_size = 14
let g:fontman_style = "bold"

To set font size and style easily in your .vimrc.

Font manager stores a cache of the currently available fonts, if a new font is
added this cache needs to be updated. Run :FontResetUseableList.

Installation

I recommend installing using Vundle:

Add Bundle 'takac/vim-fontmanager' to your ~/.vimrc and then:

  • either within Vim: :BundleInstall
  • or in your shell: vim +BundleInstall +qall

Other Installation Methods

  • Pathogen

    • git clone https://github.com/takac/vim-fontmanager ~/.vim/bundle/vim-fontmanager
  • Neobundle

    • NeoBundle 'takac/vim-fontmanager'
  • Manual

    • Copy the files into your ~/.vim directory

添加新评论