Mercurial > vim
comparison src/testdir/test58.in @ 533:c8b6b7e1005d v7.0150
updated for version 7.0150
author | vimboss |
---|---|
date | Sun, 25 Sep 2005 22:20:24 +0000 |
parents | ce2181d14aa0 |
children | c78d973dce9e |
comparison
equal
deleted
inserted
replaced
532:7052f11a3dc9 | 533:c8b6b7e1005d |
---|---|
27 " find all bad words and suggestions for them | 27 " find all bad words and suggestions for them |
28 exe '1;/^' . a:aff . 'good:' | 28 exe '1;/^' . a:aff . 'good:' |
29 normal 0f:]s | 29 normal 0f:]s |
30 let prevbad = '' | 30 let prevbad = '' |
31 while 1 | 31 while 1 |
32 let bad = spellbadword() | 32 let [bad, a] = spellbadword() |
33 if bad == '' || bad == prevbad || bad == 'badend' | 33 if bad == '' || bad == prevbad || bad == 'badend' |
34 break | 34 break |
35 endif | 35 endif |
36 let prevbad = bad | 36 let prevbad = bad |
37 let lst = spellsuggest(bad, 3) | 37 let lst = spellsuggest(bad, 3) |
58 :" also use an addition file | 58 :" also use an addition file |
59 gg:/^addstart/+1,/^addend/-1w! Xtest.latin1.add | 59 gg:/^addstart/+1,/^addend/-1w! Xtest.latin1.add |
60 :mkspell! Xtest.latin1.add.spl Xtest.latin1.add | 60 :mkspell! Xtest.latin1.add.spl Xtest.latin1.add |
61 :set spellfile=Xtest.latin1.add | 61 :set spellfile=Xtest.latin1.add |
62 /^test2: | 62 /^test2: |
63 ]s:let str = spellbadword() | 63 ]s:let [str, a] = spellbadword() |
64 :$put =str | 64 :$put =str |
65 :set spl=Xtest_us.latin1.spl | 65 :set spl=Xtest_us.latin1.spl |
66 /^test2: | 66 /^test2: |
67 ]smm:let str = spellbadword() | 67 ]smm:let [str, a] = spellbadword() |
68 :$put =str | 68 :$put =str |
69 `m]s:let str = spellbadword() | 69 `m]s:let [str, a] = spellbadword() |
70 :$put =str | 70 :$put =str |
71 :set spl=Xtest_gb.latin1.spl | 71 :set spl=Xtest_gb.latin1.spl |
72 /^test2: | 72 /^test2: |
73 ]smm:let str = spellbadword() | 73 ]smm:let [str, a] = spellbadword() |
74 :$put =str | 74 :$put =str |
75 `m]s:let str = spellbadword() | 75 `m]s:let [str, a] = spellbadword() |
76 :$put =str | 76 :$put =str |
77 :set spl=Xtest_nz.latin1.spl | 77 :set spl=Xtest_nz.latin1.spl |
78 /^test2: | 78 /^test2: |
79 ]smm:let str = spellbadword() | 79 ]smm:let [str, a] = spellbadword() |
80 :$put =str | 80 :$put =str |
81 `m]s:let str = spellbadword() | 81 `m]s:let [str, a] = spellbadword() |
82 :$put =str | 82 :$put =str |
83 :set spl=Xtest_ca.latin1.spl | 83 :set spl=Xtest_ca.latin1.spl |
84 /^test2: | 84 /^test2: |
85 ]smm:let str = spellbadword() | 85 ]smm:let [str, a] = spellbadword() |
86 :$put =str | 86 :$put =str |
87 `m]s:let str = spellbadword() | 87 `m]s:let [str, a] = spellbadword() |
88 :$put =str | 88 :$put =str |
89 :" | 89 :" |
90 :" Postponed prefixes | 90 :" Postponed prefixes |
91 :call TestOne('2', '1') | 91 :call TestOne('2', '1') |
92 :" | 92 :" |