blob: be2956c0efda4a7b21478cbc32543c7aa9530e20 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
"
" spellfile_local.vim: Set extra 'spellfile' elements for full file paths and
" filetype, to give the option of adding to file-specific or filetype-specific
" spelling word lists.
"
" Author: Tom Ryder <tom@sanctum.geek.nz>
" License: Same as Vim itself
"
if exists('loaded_spellfile_local') || &compatible || v:version < 800
finish
endif
let loaded_spellfile_local = 1
" For various events involving establishing or renaming a file buffer or
" changing its filetype, rebuild the 'spellfile' definition accordingly
"
augroup spellfile_local
autocmd BufFilePost,BufNewFile,BufRead,EncodingChanged,FileType *
\ call spellfile_local#()
autocmd OptionSet spelllang
\ call spellfile_local#()
augroup END
|