1
0
mirror of https://github.com/aquatix/dotfiles.git synced 2025-12-06 22:55:10 +01:00

Autogenerate .spl files from .add spelling files

This commit is contained in:
2021-08-23 11:05:19 +02:00
parent 5d4d5a0bfa
commit 44540b79a2

9
.vimrc
View File

@@ -271,6 +271,15 @@ endif
" https://castel.dev/post/lecture-notes-1/ " https://castel.dev/post/lecture-notes-1/
inoremap <C-l> <c-g>u<Esc>[s1z=`]a<c-g>u inoremap <C-l> <c-g>u<Esc>[s1z=`]a<c-g>u
" Make sure .add.spl spelling files are up-to-date with their .add
" counterparts
" https://vi.stackexchange.com/questions/5050/how-to-share-vim-spellchecking-additions-between-multiple-machines
for d in glob('~/.vim/spell/*.add', 1, 1)
if filereadable(d) && (!filereadable(d . '.spl') || getftime(d) > getftime(d . '.spl'))
exec 'mkspell! ' . fnameescape(d)
endif
endfor
" Word completion from dictionary (on ctrl+space) " Word completion from dictionary (on ctrl+space)
set complete+=kspell set complete+=kspell