https://github.com/nudin/wp-vim-spellcheck
Generate spell files for Vim based on Wikipedia.
https://github.com/nudin/wp-vim-spellcheck
Last synced: 2 months ago
JSON representation
Generate spell files for Vim based on Wikipedia.
- Host: GitHub
- URL: https://github.com/nudin/wp-vim-spellcheck
- Owner: Nudin
- License: gpl-3.0
- Created: 2016-03-20T22:37:25.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2016-03-20T22:43:33.000Z (about 9 years ago)
- Last Synced: 2025-01-05T15:43:37.104Z (4 months ago)
- Language: Shell
- Size: 13.7 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Generate spell files for Vim based on Wikipedia.
For a lot of us Spell checkers are a great invention, but False
positives (words marked as wrong even through they are correct) are
annoying.Vim has the awesome feature, that you can enable multiple spell files
("dictionaries") at once. This little script gets a list of all
page titles of all Wikipedia articles. You can load them additionally
to the default spell files. Depending on the text you are writing,
this can decrease the number of false positives greatly, but might
also increase the number of false negatives.**Usage:**
$ ./wp-dict.sh [lang]
Then copy the resulting .spl-file to the "spell" subdirectory of one
of the directories in your 'runtimepath', on most systems
*~/.vim/spell/* for your user or something like
*/usr/share/vim/vim74/spell/* for global installation.
For Neovim you can also use *~/.local/share/nvim/site/spell/* instead.To activate additional to the default language you can use something
like::set spelllang=en,enwp
**Tip:** if you are writing texts with mixed languages or switch the
language often you can specify even more spell files::set spelllang=en,de,enwp,dewp
**Note:** This is in early development. I sort out a lot of words that
could cause problems but probably won't. And I have no idea if it works for
languages with alphabets not based on the Latin alphabet!