set spellfile depending on host

Signed-off-by: Michael Grote <michael.grote@dataport.de>
This commit is contained in:
Michael Grote 2024-07-05 08:58:33 +02:00
parent bd51372260
commit fdb8b29950

6
.vimrc
View file

@ -255,7 +255,11 @@ endif
augroup spell
autocmd!
autocmd FileType * highlight SpellBad cterm=underline ctermfg=red ctermbg=NONE
autocmd FileType * set spellfile=~/repos/dotfiles/vim/spell/own.add
if $HOSTNAME == "lbdlspa001"
autocmd FileType * set spellfile=~/dotfiles/vim/spell/own.add
elseif $HOSTNAME == "lzeorpt001"
autocmd FileType * set spellfile=/homes/MGMT/grotemi-admin/repos/dotfiles/vim/spell/own.add
endif
autocmd FileType * set spellsuggest=fast,10
autocmd FileType * set spell spelllang=de_de,en
augroup END