Ⅰ. 插件描述
Powerline prompt builder for fishⅡ. 基本信息
|
Ⅲ. 安装方法
使用Vundle管理器安装
在你的.vimrc下添加:Plugin 'fisherman/segment'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall
对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。
使用NeoBundle管理器安装
在你的.vimrc下添加:NeoBundle 'fisherman/segment'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall
使用VimPlug管理器安装
在你的.vimrc下添加:Plug 'fisherman/segment'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall
使用Pathogen管理器安装
在终端中运行以下命令:cd ~/.vim/bundle
git clone https://github.com/fisherman/segment
Ⅳ. 文档说明
Segment
Powerline prompt builder for [fish].
Install
With [fisherman]
fisher segmentUsage
Call segment / segment_right to create a powerline segment. Call segment_close after you have added all the prompt segments.
function fish_prompt
segment white red FRONT
segment black white BASE
segment_close
end
function fish_right_prompt
segment_right white red FRONT
segment_right black white BASE
segment_close
end
Options
- foreground: Set the text foreground color.
- background: Set the text background color.
Notes
- The left prompt is built from right to left.
- The right prompt is built from left to right.