diff --git a/.vimrc b/.vimrc index 520aa87..451ce7d 100644 --- a/.vimrc +++ b/.vimrc @@ -271,6 +271,15 @@ endif " https://castel.dev/post/lecture-notes-1/ inoremap u[s1z=`]au +" 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) set complete+=kspell