vim: Remove german umlaut mappings

As I started to type on the international US layout I don't need any
extra bindings for special characters in vim.

Move the update of `spellfile` into xdg.vim, as it was the only
remaining body of `NewSpellLang()` and fits thematically.
This commit is contained in:
2022-08-25 04:27:51 +02:00
parent 794293aa81
commit 9ce1cd236b
2 changed files with 5 additions and 27 deletions

View File

@@ -44,6 +44,11 @@ if !isdirectory($XDG_DATA_HOME . '/vim/spell')
call mkdir($XDG_DATA_HOME . '/vim/spell', 'p')
endif
let &spellfile = $XDG_DATA_HOME . '/vim/spell/' . &spelllang . '.utf-8.add'
augroup xdg_spellfile
au!
au OptionSet spelllang let &spellfile =
\ $XDG_DATA_HOME . '/vim/spell/' . v:option_new . '.utf-8.add'
augroup end
set runtimepath-=~/.vim runtimepath^=$XDG_CONFIG_HOME/vim
set runtimepath-=~/.vim/after runtimepath+=$XDG_CONFIG_HOME/vim/after