diff --git a/.config/vim/vimrc.d/40-keys.vim b/.config/vim/vimrc.d/40-keys.vim index ca45466..fad5d91 100644 --- a/.config/vim/vimrc.d/40-keys.vim +++ b/.config/vim/vimrc.d/40-keys.vim @@ -55,8 +55,8 @@ noremap [S [S1z= map st :set spell=!&spell map sc :call CycleSpellLang() map ss :set spelllang= -" Umlaute and sz in Insert and Command-line mode when spelllang is set to de -autocmd OptionSet spelllang call NewSpellLang(v:option_new, v:option_old) +" Umlaute and sz in Insert and Command-line mode when spelllang is set to `de` +autocmd OptionSet spelllang silent call NewSpellLang(v:option_new, v:option_old) function! NewSpellLang(new_lang, old_lang) let &spellfile = $XDG_DATA_HOME . '/vim/spell/' . a:new_lang . '.utf-8.add'