ANN: StyleChecker 1.0
StyleChecker 1.0 - Script #946
Require: +perl feature, Vim 6.1
Thanks: Antony Scriven for help with $match
Repetition of words is sign of bad style in most languages. This
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!
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.
Default shorcut for style checking is ,, . You can change it by
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
Thanks to Perl's pragma locale, language specific letters will be
LaTeX + Vim = http://vim-latex.sourceforge.net/
Vim-list(s) Users Map: (last change 10 Mar)
Are You There?