bad-whitespace


Ⅰ. 插件描述

Highlights whitespace at the end of lines, only in modifiable buffers

Ⅱ. 基本信息

创建日期:  2011-09-07
使用用户:  174
Github星:  42
插件作者:  Bit Connor

Ⅲ. 安装方法

使用Vundle管理器安装

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

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

使用NeoBundle管理器安装

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

使用VimPlug管理器安装

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

使用Pathogen管理器安装

在终端中运行以下命令:
cd ~/.vim/bundle
git clone https://github.com/bitc/vim-bad-whitespace

Ⅳ. 文档说明

bad-whitespace - Highlights whitespace at the end of lines

http://www.vim.org/scripts/script.php?script_id=3735

Author: Bit Connor <bit@mutantlemon.com>
Version: 0.3

Get the latest version at:
https://github.com/bitc/vim-bad-whitespace

Inspired by the trailing-whitespace script:
http://www.vim.org/scripts/script.php?script_id=3201

Additional References:
http://vim.wikia.com/wiki/Highlight_unwanted_spaces
http://sartak.org/2011/03/end-of-line-whitespace-in-vim.html

About ~

This plugin highlights whitespace at the end of lines with a red color.

You can erase the bad whitespace with the command |EraseBadWhitespace|

You can manually toggle the highlighting for the current buffer with the
commands |ShowBadWhitespace| |HideBadWhitespace| |ToggleBadWhitespace|

This plugin is better than using the builtin vim 'list' command because it
doesn't show an annoying highlight while you are typing in insert mode at the
end of a line.

This plugin is better than competing plugins because it doesn't show
highlighting in buffers that are not modifiable, which is usually what you

  1. This makes it compatible with UI buffers that happen to contain bad
    whitespace, such as the quickfix window, or the fugitive plugin.

添加新评论