To search for duplicate words in a manuscript (such as “the
the”) in Vim, look for this pattern. (Erratum 2009年10月13日: changed
\+ to * to find “or or”.)
\m\c\<\\\@<!\([a-z]\%(['a-z]*[a-z]\)\?\)\_W\+\\\@<!1円\>
用 Vim 搜尋上列樣式,可以抓到文稿裡諸如 “the the” 一類的重複詞。 (2009年10月13日 勘誤:把
\+ 改為 * 才能找到 “or or”。)