The documentation states this:
,----
|                                             *zw*
| zw    Like "zg" but mark the word as a wrong (bad) word.
|       If the word already appears in 'spellfile' it is
|       turned into a comment line.  See |spellfile-cleanup|
|       for getting rid of those.
`----

However, if a word was added to the spellfile using zw and later 
commented using zg, it will be explicitly marked as bad word. See this 
sample script:

fu Test_spell()
  new
  set spell spelllang=en spellfile=/tmp/XSpellfile.add
  call append(0, 'goood')
  1
  norm! zg
  $put =readfile(&spellfile)
  norm! zw
  $put =readfile(&spellfile)

  " rm temporary spellfile
  call delete(&spellfile)
endfu

call Test_spell()

vim -u NONE -N -S test.vim

This will output something like this:
,----
| goood
| 
| goood
| #oood
| goood/!
`----

The first word is the initial word, enterd using append() from the script.
The third line contains the added word from the spellfile after having used 'zg'
and the 4-5 lines contains the entries in the spellfile after using 'zw'

I don't think that is a problem, but at least the documentation should be 
adjusted.

Best,
Christian
-- 
F: Was ist der Unterschied zwischen einer Traube und einem Elefanten?
A: Eine Traube ist violett.

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Raspunde prin e-mail lui