Ⅰ. 插件描述
Menlo font patched to work with PowerlineⅡ. 基本信息
|
Ⅲ. 安装方法
使用Vundle管理器安装
在你的.vimrc下添加:Plugin 'abertsch/menlo-for-powerline'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall
对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。
使用NeoBundle管理器安装
在你的.vimrc下添加:NeoBundle 'abertsch/menlo-for-powerline'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall
使用VimPlug管理器安装
在你的.vimrc下添加:Plug 'abertsch/menlo-for-powerline'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall
使用Pathogen管理器安装
在终端中运行以下命令:cd ~/.vim/bundle
git clone https://github.com/abertsch/menlo-for-powerline
Ⅳ. 文档说明
Menlo for Powerline
Menlo font patched to work with Powerline. Menlo's always been may favorite font to use on OS X while programming, but I was annoyed that I couldn't find a properly patched file anywhere. After a bit of trial and error, I managed to create a working version. If you find any errors with the font, please let me know.
OS X
1. Double click the font in Find and select "Install this font." It will appear to have some very strange glyphs but will work as intended.
2. If you use MacVim, add the following line to your vimrc:
set guifont=Menlo\ for\ Powerline3. For use with Terminal.app or iTerm, change your settings according. You should select your font as Menlo for Powerline.
4. Enjoy!
Linux
NB: I have not actually tried this, but it should work. I don't have access to a Linux machine, but these commands should be correct.
1. Copy Menlo for Powerline.ttf into your ~/.fonts directory. (Or any X font directory)
$ cp "Menlo for Powerline.ttf" ~/.fonts2. Update your fonts cache.
$ fc-cache -vf ~/.fontsIf you're in a terminal, you may or may not need to restart all windows before changes take effect.
3. If you use gvim, add the following line to your vimrc:
set guifont=Menlo\ for\ Powerline4. For use with the terminal, change your settings according.
5. Enjoy!
Bold, Italic, Bold Italic
As far as I know, these extra font styles should work. I've had absolutely not problems with them, however, you may run into an issue. I added them as to provide support for bold, italic, and bold italic fonts within the terminal. Please let me know if you have any issues.