Hello Vim-Dev,
In :help 'spellsuggest' these lines are written about the number of the
suggestions:
'spellsuggest' 'sps' string (default "best")
.....
.....
{number} The maximum number of suggestions listed for |z=|.
Not used for |spellsuggest()|. The number of
suggestions is never more than the value of 'lines'
minus two.
.....
.....
I tried several spelling dictionaries listed below, few wrong words, and
have got these numbers of the suggestions:
for Hungarian: hu.iso-8859-2.spl
- semenyi - 167 suggestions
- lennni - 157 sugg
- nemlenni - 159 sugg
- ...
for Czech: cs.iso-8859-2.spl
- činebýt - 167 sugg
- měljste - 169 sugg
- býtči - 197 sugg
- ...
for Slovak: sk.iso-8859-2.spl
- činebyť - 160 sugg
- malste - 151 sugg
- byťči - 174 sugg
- ...
The results were achieved with 'set spellsuggest=double'. The suggestion
works fine with the fast and the best internal methods. The settings
'set sps=double,10' doesn't work at all, it just decreases the number of
suggestions to maximum 150.
What's interesting they all have the rating in the style (number - 0).
Does the zero mean sth important?
It was not much effort to find the listed above -- three shots = three
hits, for each language -- probably this is a behavior like that for the
most of the words.
(for EN: I can't find any word for the spell function behave like above.
There is a maximum of 34, which is correct. I have 'lines' set as 36.)
A) There is mistake in the help files and there should be written 'the
number of the suggestions are not limited using the double internal
method' (which is a but strange -- why one can't use any limitation
using this method...). Or..
B) There is same wrong number checking in the
'spellsuggest=double,{any,number}' and it doesn't work for other than
English language.
C) I missed sth very important in the help files... :)
Best regards,
Milan
--
* Milan Berta
* Institute of Physics
* Academy of Sciences of the Czech Republic
* Na Slovance 2
* CZ-182 21 Prague 8
* Czech Republic
*
* mailto: [EMAIL PROTECTED]
* phone: +420 266 052 650, +420 266 052 748
* fax: +420 286 890 416
* URL: http://www.fzu.cz/
VIM - Vi IMproved 7.0f BETA (2006 Apr 24, compiled Apr 25 2006 00:22:48)
Compiled by [EMAIL PROTECTED]
Huge version without GUI. Features included (+) or not (-):
+arabic +autocmd -balloon_eval -browse ++builtin_terms +byte_offset +cindent
+clientserver +clipboard +cmdline_compl +cmdline_hist +cmdline_info +comments
+cryptv +cscope +cursorshape +dialog_con +diff +digraphs -dnd -ebcdic
+emacs_tags +eval +ex_extra +extra_search +farsi +file_in_path +find_in_path
+folding -footer +fork() -gettext -hangul_input +iconv +insert_expand +jumplist
+keymap +langmap +libcall +linebreak +lispindent +listcmds +localmap +menu
+mksession +modify_fname +mouse -mouseshape +mouse_dec -mouse_gpm
-mouse_jsbterm +mouse_netterm +mouse_xterm +multi_byte +multi_lang -mzscheme
-netbeans_intg -osfiletype +path_extra -perl +postscript +printer +profile
-python +quickfix +rightleft -ruby +scrollbind +signs +smartindent -sniff
+statusline -sun_workshop +syntax +tag_binary +tag_old_static -tag_any_white
-tcl +terminfo +termresponse +textobjects +title -toolbar +user_commands
+vertsplit +virtualedit +visual +visualextra +viminfo +vreplace +wildignore
+wildmenu +windows +writebackup +X11 +xfontset -xim +xsmp_interact
+xterm_clipboard -xterm_save
system vimrc file: "$VIM/vimrc"
user vimrc file: "$HOME/.vimrc"
user exrc file: "$HOME/.exrc"
fall-back for $VIM: "/home/bertm0am/local/share/vim"
Compilation: gcc -c -I. -Iproto -DHAVE_CONFIG_H -O2 -fno-strength-reduce
-Wall -I/usr/X11R6/include
Linking:
gcc -L/usr/X11R6/lib -L/usr/local/lib -o vim -lXt -lncurses -lacl