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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user