StyleChecker (+perl)


Ⅰ. 插件描述

Tool for finding and highlighting repeated words in file

Ⅱ. 基本信息

创建日期:  2004-03-26
使用用户:  1
Github星:  1
插件作者:  Mikolaj Machowski

Ⅲ. 安装方法

使用Vundle管理器安装

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

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

使用NeoBundle管理器安装

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

使用VimPlug管理器安装

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

使用Pathogen管理器安装

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

Ⅳ. 文档说明

"      Repetition of words is sign of bad style in most languages. This script"      will help to track repetition of words in LaTeX, HTML and mail files.""      LaTeX: don't take into account keywords"      HTML: don't highlight content of tags"      Mail: don't look in quoted messages, headers and signatures ""      There is also support for any other filetype. StyleChecker will"      highlight there only repeated words in comments.""      This script requires Perl interface. Theoretically it could be done in"      pure VimL but multiple iterations through long lists of words make it"      practically impossible - vote for arrays in VimL!"" Installation:"      Put this file into your .vim/macros directory and source it from local"      ftplugins. Of course you can place this file in .vim/plugin directory"      but this file will be sourced every time you open Vim."" Usage:"      Default shorcut for style checking is ,, . You can change it by placing"      in .vimrc: "            map <YourShortcut> <Plug>StyleChecker""      After execution of map script will highlight repeated words."      Next execution of map restore original highlighting of file."      In console Vim offending words will be highlighted with 8 colors, in GUI"      with 16. "      Thanks to Perl's pragma locale, language specific letters will be"      treated properly. "" Settings:"      Behavior of StyleChecker you can control through variables. They are"      Vim variables, there is no need to play with Perl." More about setting variables in file.

添加新评论