lightline-trailing-whitespace


Ⅰ. 插件描述

A trailing whitespace component for the lightline vim plugin

Ⅱ. 基本信息

创建日期:  2017-10-30
使用用户:  2
Github星:  4
插件作者:  Maxim Baz

Ⅲ. 安装方法

使用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.

screenshot

Table Of Contents

Installation

Install using a plugin manager of your choice, for example:

call dein#add('maximbaz/lightline-trailing-whitespace')

Integration

  1. Register the component:
let g:lightline.component_expand = {'trailing': 'lightline#trailing_whitespace#component'}
  1. Set color to the component (use warning or error):
let g:lightline.component_type = {'trailing': 'error'}
  1. 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

添加新评论