blob: 1730ac8a95b0f41ee056c872702a5df4072d851e [file] [log] [blame]
Bram Moolenaarb8a7b562006-02-01 21:47:16 +00001" Vim plugin for downloading spell files
Christian Brabandte978b452023-08-13 10:33:05 +02002" Maintainer: The Vim Project <https://github.com/vim/vim>
3" Last Change: 2023 Aug 10
4" Former Maintainer: Bram Moolenaar <Bram@vim.org>
Bram Moolenaarb8a7b562006-02-01 21:47:16 +00005
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
10if exists("loaded_spellfile_plugin") || &cp || exists("#SpellFileMissing")
11 finish
12endif
13let loaded_spellfile_plugin = 1
14
15" The function is in the autoload directory.
16autocmd SpellFileMissing * call spellfile#LoadFile(expand('<amatch>'))