Ⅰ. 插件描述
Vim Plugin for displaying whitespaceⅡ. 基本信息
|
Ⅲ. 安装方法
使用Vundle管理器安装
在你的.vimrc下添加:Plugin 'chrisbra/showwhitespace'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall
对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。
使用NeoBundle管理器安装
在你的.vimrc下添加:NeoBundle 'chrisbra/showwhitespace'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall
使用VimPlug管理器安装
在你的.vimrc下添加:Plug 'chrisbra/showwhitespace'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall
使用Pathogen管理器安装
在终端中运行以下命令:cd ~/.vim/bundle
git clone https://github.com/chrisbra/vim-show-whitespace
Ⅳ. 文档说明
#ShowWhite plugin
A Vim plugin for displaying whitespace characters
This plugin is inspired by a Question on Stackoverflow and allows to toggle displaying of space characters quickly.
Installation
Use the plugin manager of your choice. Or download the [stable][] version of the plugin, edit it with Vim (vim show-white-XXX.vmb) and simply source it (:so %). Restart and take a look at the help (:h ShowWhitespace.txt)
Usage
Once installed, take a look at the help at :h ShowWhitespace
Here is a short overview of the functionality provided by the plugin:
Ex commands:
:ShowWhiteToggle - Toggle displaying space characters in the current window.
:ShowCharAs c1 c2 - Display c1 as c2 in the current window
:ShowCharAs! - Remove highlighting from previous :ShowCharAs commandNormal mode commands:
\ws - toggle displaying space characters
License & Copyright
© 2014-2017 by Christian Brabandt. The Vim License applies. See :h license
NO WARRANTY, EXPRESS OR IMPLIED. USE AT-YOUR-OWN-RISK