Ⅰ. 插件描述
A trailing whitespace component for the lightline vim pluginⅡ. 基本信息
|
Ⅲ. 安装方法
使用Vundle管理器安装
在你的.vimrc下添加:Plugin 'maximbaz/lightline-trailing-whitespace'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall
对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。
使用NeoBundle管理器安装
在你的.vimrc下添加:NeoBundle 'maximbaz/lightline-trailing-whitespace'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall
使用VimPlug管理器安装
在你的.vimrc下添加:Plug 'maximbaz/lightline-trailing-whitespace'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall
使用Pathogen管理器安装
在终端中运行以下命令:cd ~/.vim/bundle
git clone https://github.com/maximbaz/lightline-trailing-whitespace
Ⅳ. 文档说明
# lightline-trailing-whitespace
This plugin provides indicator for trailing whitespace for the lightline vim plugin.

Table Of Contents
Installation
Install using a plugin manager of your choice, for example:
call dein#add('maximbaz/lightline-trailing-whitespace')Integration
- Register the component:
let g:lightline.component_expand = {'trailing': 'lightline#trailing_whitespace#component'}- Set color to the component (use
warningorerror):
let g:lightline.component_type = {'trailing': 'error'}- Add the component to the lightline, for example to the right side:
let g:lightline.active = { 'right': [[ 'trailing' ]] }Configuration
g:lightline#trailing_whitespace#indicator
The indicator to use when there are trailing whitespace. Default is trailing.
If you are a fan of unicode characters, here's a good one to use: •
License
Released under the MIT License