lcscheck.vim


Ⅰ. 插件描述

check 'listchars' for valid eol byte for utf-8. (Not needed for Vim 6.2)

Ⅱ. 基本信息

创建日期:  2002-07-19
使用用户:  1
Github星:  1
插件作者:  Antoine Mechelynck

Ⅲ. 安装方法

使用Vundle管理器安装

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

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

使用NeoBundle管理器安装

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

使用VimPlug管理器安装

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

使用Pathogen管理器安装

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

Ⅳ. 文档说明

Under utf-8, characters 128 and over become multi-byte. Therefore, under  Vim 6.1 or earlier, they should not be used for the option values in 'listchars'. This script takes care of the "eol:" sub-option, the only one which gave me problems. If you use characters >= 128 for other sub-options, similar scripts can easily be written (based on this one) to take care of them.

This script has intentionally been abundantly commented to make it understandable.

See vimtip#246 for a related tip.

添加新评论