[Mplayer-cvslog] Re: CVS: main/DOCS sound.html,1.59,1.60

Daniel Hottinger TheHotti at gmx.ch
Sun Jan 5 15:29:35 CET 2003


Hi,

* On the 5th day of the year MMIII a.d., Diego Biurrun wrote:
> I've always wondered why spell checkers don't test for duplicate
> words, they are errors in 90% of the cases.  Does anybody know of/have
> a program that does this?  Probably a simple emacs macro should be
> enough.

I use this for VIM with TeX-files:

[~/.vim/after/syntax/tex.vim]

=====8<-----
syn match texDoubleWord "\c\<\(\a\+\)\_s\+\1\>"
hi def link texDoubleWord Error
=====8<-----

It highlights duplicate words with red background color. Adaption
should be easy.

Hotti
-- 
Algorithms are inherently mathematical things that should be as unpatentable 
as the value of pi.  -- D.E. Knuth


More information about the MPlayer-cvslog mailing list