vim:keys: Make call to NewSpellLang silent
This commit is contained in:
@@ -55,8 +55,8 @@ noremap <leader>[S [S1z=<C-O>
|
||||
map <leader>st :set spell=!&spell<CR>
|
||||
map <leader>sc :call CycleSpellLang()<CR>
|
||||
map <leader>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'
|
||||
|
||||
|
||||
Reference in New Issue
Block a user