diff --git a/.vimrc b/.vimrc index 42cafe0..c587b98 100644 --- a/.vimrc +++ b/.vimrc @@ -244,10 +244,6 @@ function! ToggleNERDTreeFind() endif endfunction -" yaml einrückung -autocmd FileType yaml setlocal ai ts=2 sw=2 et -autocmd FileType yml setlocal ai ts=2 sw=2 et - " timeouts set timeoutlen=100 @@ -255,3 +251,20 @@ set timeoutlen=100 if &diff colorscheme nord endif + +augroup spell + autocmd! + autocmd FileType * highlight SpellBad cterm=underline ctermfg=red ctermbg=NONE + autocmd FileType * set spellfile=~/dotfiles/vim/spell/own.add + autocmd FileType * set spellsuggest=fast,10 + autocmd FileType * set spell spelllang=de_de,en +augroup END +" z= Korrektur +" ]s/[s gehe vor/zurück nächsten fehlerhaften wort +" zg add to dictionary + +augroup yaml +autocmd! + autocmd FileType yml setlocal ai ts=2 sw=2 et + autocmd FileType yaml,yml setlocal ai ts=2 sw=2 et +augroup END diff --git a/vim/spell/de.utf-8.spl b/vim/spell/de.utf-8.spl new file mode 100644 index 0000000..37cbbca Binary files /dev/null and b/vim/spell/de.utf-8.spl differ diff --git a/vim/spell/de.utf-8.sug b/vim/spell/de.utf-8.sug new file mode 100644 index 0000000..13ff0a3 Binary files /dev/null and b/vim/spell/de.utf-8.sug differ diff --git a/vim/spell/en.utf-8.spl b/vim/spell/en.utf-8.spl new file mode 100644 index 0000000..e4b1e1c Binary files /dev/null and b/vim/spell/en.utf-8.spl differ diff --git a/vim/spell/en.utf-8.sug b/vim/spell/en.utf-8.sug new file mode 100644 index 0000000..103ebfc Binary files /dev/null and b/vim/spell/en.utf-8.sug differ diff --git a/vim/spell/own.add b/vim/spell/own.add new file mode 100644 index 0000000..363abc5 --- /dev/null +++ b/vim/spell/own.add @@ -0,0 +1,2 @@ +dotfiles +Ansible diff --git a/vim/spell/own.add.spl b/vim/spell/own.add.spl new file mode 100644 index 0000000..5b0affc Binary files /dev/null and b/vim/spell/own.add.spl differ