monaco


Ⅰ. 插件描述

Monaco powerline patched font for airline or powerline Ubuntu Terminal

Ⅱ. 基本信息

创建日期:  2014-04-25
使用用户:  1
Github星:  18
插件作者:  Inoyatov Khamidulla

Ⅲ. 安装方法

使用Vundle管理器安装

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

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

使用NeoBundle管理器安装

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

使用VimPlug管理器安装

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

使用Pathogen管理器安装

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

Ⅳ. 文档说明

Patched Monaco Font for airline or powerline

Monaco font for airline or powerline vim plugin. Which is tested on gnome terminal in Ubuntu 14.04 LTS.

INSTALL

  • Clone or copy current files under your prefered folder
  • Open terminal and change to the font directory where you downloaded files
cd /path/to/directory/which/contains/downloaded/files/font
  • Move Ubuntu Mono derivative Powerline.ttf to your home folder _~/.fonts_. If .fonts direcory does not exists create it (mkdir ~/.fonts)
mkdir ~/.fonts
mv Ubuntu\ Mono\ derivative\ Powerline.ttf ~/.fonts
  • Change to config directory and move 10-powerline-symbols.conf to ~/.config/fontconfig/conf.d/. If folders does not exists create them
mv 10-powerline-symbols.conf ~/.config/fontconfig/conf.d/
  • Execute following in terminal in order to update font cache and close all terminal windows.
sudo fc-cache
  • Open gnome terminal and select Monaco for Powerline in terminal configuration window
  • Open ~/.vimrc in vim and add let g:airline_powerline_fonts = 1 for enabling powerline fonts in airline
vim ~/.vimrc
let g:airline_powerline_fonts = 1
  • Quit from vim and open again. Now you can see powerline symbols in your airline theme.

P.S.: I did not use powerline so I did not tested but it works in airline.
If you wondering why font name Ubuntu Mono derivative Powerline.ttf read here

添加新评论