weicj / vim

Automatically exported from code.google.com/p/vim
0 stars 0 forks source link

Spellcheck and Latex umlaut #335

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Type Geiger-M\"uller

Try to add to the spell check dictionary, the last few letters will still show 
as incorrect spelling.

Now type Geiger-M\"{u}ller

Again try to add it to the spell check dictionary, this time it will work.

But not only does it work - but the first example will now show as correct when 
running spell check.

Original issue reported on code.google.com by ad...@a-sharpe.co.uk on 24 Feb 2015 at 12:07

GoogleCodeExporter commented 9 years ago
I think this works as documented:

  ,----[:h zg]
  | In Visual mode the selected characters are added as a
  | word (including white space!).
  | When the cursor is on text that is marked as badly
  | spelled then the marked text is used.
  | Otherwise the word under the cursor, separated by
  | non-word characters, is used.
  `----

The problem are the chars '-{}\"' which are non-words and therefore not the
complete word will be added to the spell dictionary.
So visually select the word and use 'zg' to add the misspelled word to the 
spell file.

Also note, with recent Vim versions, zg  shows what will be added to the 
spellfile.

Original comment by chrisbr...@googlemail.com on 25 Feb 2015 at 9:38