Ⅰ. 插件描述
Helps Vim detect which fonts are installed on the system.Ⅱ. 基本信息
|
Ⅲ. 安装方法
使用Vundle管理器安装
在你的.vimrc下添加:Plugin 'drmikehenry/fontdetect'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall
对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。
使用NeoBundle管理器安装
在你的.vimrc下添加:NeoBundle 'drmikehenry/fontdetect'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall
使用VimPlug管理器安装
在你的.vimrc下添加:Plug 'drmikehenry/fontdetect'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall
使用Pathogen管理器安装
在终端中运行以下命令:cd ~/.vim/bundle
git clone https://github.com/drmikehenry/vim-fontdetect
Ⅳ. 文档说明
*
fontdetect - detect installed fonts
fontdetect helps Vim detect which fonts are installed on the system.
It works around limitations in Vim's getfontname() function.
For example (using GTK2 GUI)::
if fontdetect#hasFontFamily("DejaVu Sans Mono")
let &guifont = "DejaVu Sans Mono 14"
endif
At present, the following platforms are supported:
- Linux (using GTK2 or GTK3 GUI)
- Windows
- Mac OS X (requires Python integration)
See documentation in doc/fontdetect.txt for installation instructions.
Developed by Michael Henry (vim at drmikehenry.com).
Distributed under Vim's license.
Git repository: https://github.com/drmikehenry/vim-fontdetect