Vim spell-checker does not recognize concatenated words (German)

When, for example, typing "Beispielwort", vim spell-checker offers a "Beispielwort". However, he accepts Beispiel-Wort.

There are two problems with this:

  • In German, using a hyphen to concatenate words is a bad style. The right way is to simply write them together - the second word starting with a lowercase letter, of course.
  • In addition, the proposed Beispiel Wort is not German at all.

Is there a way to tell vim not to accept "Beispielwort" and instead consider "Beispielwort" correct?

+4
source share
2 answers

: https://github.com/ganwell/vim-hunspell-dicts

. MySpell, Vim. MySpell "" , . HunSpell, "" .

Vim HunSpell, . HunSpell Vim. , HunSpell. , github. ( )

: HunSpell .

+4

:help spell zg zw

Vim , . , , Vim:

vim -c "mkspell! myde/usr/share/myspell/dicts/de_DE | qa"

, , , . Vim.

+1

Source: https://habr.com/ru/post/1544164/


All Articles