diff options
author | Bram Moolenaar <Bram@vim.org> | 2005-04-23 20:52:00 +0000 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2005-04-23 20:52:00 +0000 |
commit | 0cb032ecb8b03d9c387b89c9f26158924f216e67 (patch) | |
tree | 90fae818982fa882007e8c077c30c61a08bfeb38 /runtime/doc | |
parent | 8fcc0f71a13eaecabb1314e5dc48fe937dd122b0 (diff) | |
download | vim-0cb032ecb8b03d9c387b89c9f26158924f216e67.zip |
updated for version 7.0070
Diffstat (limited to 'runtime/doc')
-rw-r--r-- | runtime/doc/eval.txt | 11 | ||||
-rw-r--r-- | runtime/doc/spell.txt | 50 | ||||
-rw-r--r-- | runtime/doc/tags | 6 |
3 files changed, 57 insertions, 10 deletions
diff --git a/runtime/doc/eval.txt b/runtime/doc/eval.txt index a0e446fcb..d9020a741 100644 --- a/runtime/doc/eval.txt +++ b/runtime/doc/eval.txt @@ -1,4 +1,4 @@ -*eval.txt* For Vim version 7.0aa. Last change: 2005 Apr 04 +*eval.txt* For Vim version 7.0aa. Last change: 2005 Apr 22 VIM REFERENCE MANUAL by Bram Moolenaar @@ -338,6 +338,10 @@ Functions that are useful with a List: > :let s = string(list) " String representation of list :call map(list, '">> " . v:val') " prepend ">> " to each item +Don't forget that a combination of features can make things simple. For +example, to add up all the numbers in a list: > + :exe 'let sum = ' . join(nrlist, '+') + 1.4 Dictionaries ~ *Dictionaries* *Dictionary* @@ -3719,7 +3723,10 @@ split({expr} [, {pattern}]) *split()* it makes the function work a bit faster. To split a string in individual characters: > :for c in split(mystring, '\zs') -< The opposite function is |join()|. +< If you want to keep the separator you can also use '\zs': > + :echo split('abc:def:ghi', ':\zs') +< ['abc:', 'def:', 'ghi'] ~ + The opposite function is |join()|. strftime({format} [, {time}]) *strftime()* diff --git a/runtime/doc/spell.txt b/runtime/doc/spell.txt index 0f359a4c0..906e5cc98 100644 --- a/runtime/doc/spell.txt +++ b/runtime/doc/spell.txt @@ -1,4 +1,4 @@ -*spell.txt* For Vim version 7.0aa. Last change: 2005 Apr 20 +*spell.txt* For Vim version 7.0aa. Last change: 2005 Apr 23 VIM REFERENCE MANUAL by Bram Moolenaar @@ -160,16 +160,19 @@ procedure is recommended: 1. Obtain the xx_YY.aff and xx_YY.dic files from Myspell. 2. Make a copy of these files to xx_YY.orig.aff and xx_YY.orig.dic. 3. Change the xx_YY.aff and xx_YY.dic files to remove bad words, add missing - words, etc. -4. Use |:mkspell| to generate the Vim spell file and try it out. + words, define word characters with FOL/LOW/UPP, etc. The distributed + "src/spell/*.diff" files can be used. +4. Set 'encoding' to the desired encoding and use |:mkspell| to generate the + Vim spell file. +5. Try out the spell file with ":set spell spelllang=xx_YY". When the Myspell files are updated you can merge the differences: -5. Obtain the new Myspell files as xx_YY.new.aff and xx_UU.new.dic. -6. Use Vimdiff to see what changed: > +1. Obtain the new Myspell files as xx_YY.new.aff and xx_UU.new.dic. +2. Use Vimdiff to see what changed: > vimdiff xx_YY.orig.dic xx_YY.new.dic -7. Take over the changes you like in xx_YY.dic. +3. Take over the changes you like in xx_YY.dic. You may also need to change xx_YY.aff. -8. Rename xx_YY.new.dic to xx_YY.orig.dic and xx_YY.new.aff to xx_YY.new.aff. +4. Rename xx_YY.new.dic to xx_YY.orig.dic and xx_YY.new.aff to xx_YY.new.aff. ============================================================================== 9. Spell file format *spell-file-format* @@ -272,5 +275,38 @@ Performance hint: Although using affixes reduces the number of words, it reduces the speed. It's a good idea to put all the often used words in the word list with the affixes prepended/appended. + *spell-affix-chars* +The affix file should define the word characters when using an 8-bit encoding +(as specified with ENC). This is because the system where ":mkspell" is used +may not support a locale with this encoding and isalpha() won't work. For +example when using "cp1250" on Unix. + + *E761* *E762* +Three lines in the affix file are needed. Simplistic example: + + FOL áëñáëñ + LOW áëñáëñ + UPP áëñÁËÑ + +All three lines must have exactly the same number of characters. + +The "FOL" line specifies the case-folded characters. These are used to +compare words while ignoring case. For most encodings this is identical to +the lower case line. + +The "LOW" line specifies the characters in lower-case. Mostly it's equal to +the "FOL" line. + +The "UPP" line specifies the characters with upper-case. That is, a character +is upper-case where it's different from the character at the same position in +"FOL". + +ASCII characters should be omitted, Vim always handles these in the same way. +When the encoding is UTF-8 no word characters need to be specified. + + *E763* +All spell files for the same encoding must use the same word characters, +otherwise they can't be combined without errors. + vim:tw=78:sw=4:ts=8:ft=help:norl: diff --git a/runtime/doc/tags b/runtime/doc/tags index f9c52519e..d86423aba 100644 --- a/runtime/doc/tags +++ b/runtime/doc/tags @@ -3697,6 +3697,9 @@ E758 spell.txt /*E758* E759 spell.txt /*E759* E76 pattern.txt /*E76* E760 spell.txt /*E760* +E761 spell.txt /*E761* +E762 spell.txt /*E762* +E763 spell.txt /*E763* E77 message.txt /*E77* E78 motion.txt /*E78* E79 message.txt /*E79* @@ -4218,6 +4221,7 @@ blockwise-operators visual.txt /*blockwise-operators* blockwise-register change.txt /*blockwise-register* blockwise-visual visual.txt /*blockwise-visual* book intro.txt /*book* +bookmark usr_03.txt /*bookmark* boolean options.txt /*boolean* break-finally eval.txt /*break-finally* browse() eval.txt /*browse()* @@ -5113,7 +5117,6 @@ hebrew hebrew.txt /*hebrew* hebrew.txt hebrew.txt /*hebrew.txt* help various.txt /*help* help-context help.txt /*help-context* -help-tags tags 1 help-translated various.txt /*help-translated* help-xterm-window various.txt /*help-xterm-window* help.txt help.txt /*help.txt* @@ -6230,6 +6233,7 @@ spec_chglog_release_info pi_spec.txt /*spec_chglog_release_info* special-buffers windows.txt /*special-buffers* speed-up tips.txt /*speed-up* spell spell.txt /*spell* +spell-affix-chars spell.txt /*spell-affix-chars* spell-affix-mbyte spell.txt /*spell-affix-mbyte* spell-affix-vim spell.txt /*spell-affix-vim* spell-file-format spell.txt /*spell-file-format* |