Ⅰ. 插件描述
Highlight indentation characters if they contain spaces, even mixed with tabsⅡ. 基本信息
|
Ⅲ. 安装方法
使用Vundle管理器安装
在你的.vimrc下添加:Plugin '/showspaces'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall
对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。
使用NeoBundle管理器安装
在你的.vimrc下添加:NeoBundle '/showspaces'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall
使用VimPlug管理器安装
在你的.vimrc下添加:Plug '/showspaces'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall
使用Pathogen管理器安装
在终端中运行以下命令:cd ~/.vim/bundle
git clone https://github.com/vim-scripts/ShowSpaces
Ⅳ. 文档说明
Vim-ShowSpaces is a Vim plugin which highlights the indentation characters when
spaces are used, even when spaces and tabs are mixed. It is useful to enforce
the use of tabulations in a project instead of spaces, or even worse, mixed
tabulations and spaces.
The highlighting can be activated on a per filetype basis.
READ THE DOCUMENTATION (or at least the README)! The plugin does not highlight
anything by default. You need to 'let g:showSpaces=1' somewhere (preferably inside a
ftplugin/ local config file).
Sources are available on github: https://github.com/guiniol/vim-showspaces.git
The project is under BSD-2 clauses license. (See file LICENSE in the archive).