Bram Moolenaar | b8a7b56 | 2006-02-01 21:47:16 +0000 | [diff] [blame] | 1 | " Vim plugin for downloading spell files |
Christian Brabandt | e978b45 | 2023-08-13 10:33:05 +0200 | [diff] [blame] | 2 | " Maintainer: The Vim Project <https://github.com/vim/vim> |
| 3 | " Last Change: 2023 Aug 10 |
| 4 | " Former Maintainer: Bram Moolenaar <Bram@vim.org> |
Bram Moolenaar | b8a7b56 | 2006-02-01 21:47:16 +0000 | [diff] [blame] | 5 | |
| 6 | " Exit quickly when: |
| 7 | " - this plugin was already loaded |
| 8 | " - when 'compatible' is set |
| 9 | " - some autocommands are already taking care of spell files |
| 10 | if exists("loaded_spellfile_plugin") || &cp || exists("#SpellFileMissing") |
| 11 | finish |
| 12 | endif |
| 13 | let loaded_spellfile_plugin = 1 |
| 14 | |
| 15 | " The function is in the autoload directory. |
| 16 | autocmd SpellFileMissing * call spellfile#LoadFile(expand('<amatch>')) |