updated for version 7.0070
This commit is contained in:
@ -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()*
|
||||
|
||||
@ -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 <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
LOW <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
UPP <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
|
||||
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:
|
||||
|
||||
@ -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*
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
" Menu Translations: Swedish
|
||||
" Maintainer: Johan Svedberg <johan@svedberg.pp.se>
|
||||
" Last Change: 2004 May 16
|
||||
" Maintainer: Johan Svedberg <johan@svedberg.com>
|
||||
" Last Change: 2005 April 23
|
||||
|
||||
" Quit when menu translations have already been done.
|
||||
if exists("did_menu_trans")
|
||||
@ -17,12 +17,13 @@ endif
|
||||
" Help menu
|
||||
menutrans &Help &Hj<EFBFBD>lp
|
||||
menutrans &Overview<Tab><F1> &<26>versikt<Tab><F1>
|
||||
menutrans &How-to\ links &Hur-g<EFBFBD>ra-l<EFBFBD>nkar
|
||||
menutrans &User\ Manual &Anv<EFBFBD>ndarmanual
|
||||
"menutrans &GUI &GUI
|
||||
menutrans &How-to\ links &Hur-g<EFBFBD>ra-l<EFBFBD>nkar
|
||||
menutrans &Find\.\.\. &S<EFBFBD>k\.\.\.
|
||||
menutrans &Credits &Tack
|
||||
menutrans Co&pying &Kopieringsr<EFBFBD>ttigheter
|
||||
menutrans &Find\.\.\. &S<EFBFBD>k\.\.\.
|
||||
menutrans &Sponsor/Register &Sponsra/Registrering
|
||||
menutrans O&rphans F&<26>r<EFBFBD>lderl<EFBFBD>sa
|
||||
menutrans &Version &Version
|
||||
menutrans &About &Om
|
||||
|
||||
@ -50,7 +51,7 @@ menutrans &Copy<Tab>"+y &Kopiera<Tab>"+y
|
||||
menutrans &Paste<Tab>"+gP Klistra &in<Tab>"+gP
|
||||
menutrans Put\ &Before<Tab>[p S<EFBFBD>tt\ in\ &f<EFBFBD>re<Tab>[p
|
||||
menutrans Put\ &After<Tab>]p S<EFBFBD>tt\ in\ &efter<Tab>]p
|
||||
menutrans &Select\ all<Tab>ggVG &Markera\ allt<Tab>ggVG
|
||||
menutrans &Select\ All<Tab>ggVG &Markera\ allt<Tab>ggVG
|
||||
menutrans &Find\.\.\. &S<EFBFBD>k\.\.\.
|
||||
menutrans &Find<Tab>/ &S<>k<Tab>/
|
||||
menutrans Find\ and\ Rep&lace\.\.\. S<EFBFBD>k\ och\ ers<EFBFBD>tt\.\.\.
|
||||
@ -75,6 +76,7 @@ menutrans Insert\ mode Infogningsl
|
||||
menutrans Block\ and\ Insert Block\ och\ infogning
|
||||
menutrans Always Alltid
|
||||
menutrans Toggle\ Insert\ &Mode<Tab>:set\ im! V<EFBFBD>xla\ infogningsl<EFBFBD>ge<Tab>:set\ im!
|
||||
menutrans Toggle\ Vi\ C&ompatible<Tab>:set\ cp! V<EFBFBD>xla\ Vi-kompatibelitet<Tab>:set\ cp!
|
||||
menutrans Search\ &Path\.\.\. S<EFBFBD>kv<EFBFBD>g\.\.\.
|
||||
menutrans Ta&g\ Files\.\.\. Taggfiler\.\.\.
|
||||
menutrans Toggle\ &Toolbar V<EFBFBD>xla\ verktygsrad
|
||||
@ -91,6 +93,8 @@ menutrans Toggle\ W&rap\ at\ word<Tab>:set\ lbr! V
|
||||
menutrans Toggle\ &expand-tab<Tab>:set\ et! V<EFBFBD>xla\ tab-expandering<Tab>:set\ et!
|
||||
menutrans Toggle\ &auto-indent<Tab>:set\ ai! V<EFBFBD>xla\ auto-indentering<Tab>:set\ ai!
|
||||
menutrans Toggle\ &C-indenting<Tab>:set\ cin! V<EFBFBD>xla\ C-indentering<Tab>:set\ cin!
|
||||
menutrans &Shiftwidth &Shiftbredd
|
||||
menutrans Soft\ &Tabstop Mjuka\ &Tabbstopp
|
||||
menutrans Te&xt\ Width\.\.\. Textbredd\.\.\.
|
||||
menutrans &File\ Format\.\.\. Filformat\.\.\.
|
||||
|
||||
@ -123,7 +127,7 @@ menutrans &Close\ all\ folds<Tab>zM St
|
||||
menutrans O&pen\ more\ folds<Tab>zr <09>ppna\ mer\ veck<Tab>zr
|
||||
menutrans &Open\ all\ folds<Tab>zR <09>ppna\ mer\ veck<Tab>zR
|
||||
menutrans Fold\ Met&hod Veckmetod
|
||||
menutrans M&anual Manual
|
||||
menutrans M&anual Manuell
|
||||
menutrans I&ndent Indentering
|
||||
menutrans E&xpression Uttryck
|
||||
menutrans S&yntax Syntax
|
||||
|
||||
Binary file not shown.
Reference in New Issue
Block a user