This repository has been archived on 2023-01-25. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
mail-config/vim/.vim/mail.vim

41 lines
1.3 KiB
VimL

""""" Mail specific setting, auto replacements etc, not depending on mail client
" hide gvim elements
set guioptions-=m "remove menu bar
set guioptions-=T "remove toolbar
" highlight words for better writing ( http://mashable.com/2015/05/03/words-eliminate-vocabulary/ )
syn keyword Todo that That went Went honestly Honestly Absolutely absolutely very Very really Really amazing Amazing always Always never Never literally Literally just Just maybe Maybe stuff Stuff things Things thing Thing irregardless Irregardless
" Some auto replacements for end of mails
iab _v Viele Grüße<C-M>Max
iab _vm Viele Grüße<C-M>Max Mehl
iab _bg Beste Grüße<C-M>Max
iab _bgm Beste Grüße<C-M>Max Mehl
iab _b Best,<C-M>Max
iab _br Best regards,<C-M>Max
iab _brm Best regards,<C-M>Max Mehl
" highlight CApital LEtter TYpos
:match Title /\<\u\{2}\l.\{-}\>/
" Auto-replace dumb typos
iab teh the
iab MAx Max
"" Spell checking
setlocal spell spelllang=en_gb " default: EN spellcheck
" Disable spell check
nmap <M-c> :setlocal spell!<CR>
map! <M-c> <ESC>:setlocal spell!<CR>li
" EN spell check
nmap <M-e> :setlocal spell spelllang=en_gb<CR>
map! <M-e> <ESC>:setlocal spell spelllang=en_gb<CR>li
" DE spell check
nmap <M-d> :setlocal spell spelllang=de_20<CR>
map! <M-d> <ESC>:setlocal spell spelllang=de_20<CR>li