sponsor Vim development Vim logo Vim Book Ad

StyleChecker (+perl) : Tool for finding and highlighting repeated words in file

 script karma  Rating 3/3, Downloaded by 732    Comments, bugs, improvements  Vim wiki

created by
Mikolaj Machowski
 
script type
utility
 
description
"      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.
 
install details
"      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.
 

rate this script Life Changing Helpful Unfulfilling 
script versions (upload new version)

Click on the package to download.

package script version date Vim version user release notes
stylechecker.vim 1.0 2004-03-26 6.0 Mikolaj Machowski Initial upload
ip used for rating: 54.242.18.190

If you have questions or remarks about this site, visit the vimonline development pages. Please use this site responsibly.
Questions about Vim should go to the maillist. Help Bram help Uganda.
   
SourceForge.net Logo