2017-04-22 22:28:30 +02:00
|
|
|
""""" 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
|
|
|
|
|
|
|
|
|
|
" 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
|
2018-01-18 18:13:45 +01:00
|
|
|
iab _mfg Mit freundlichen Grüßen<C-M>Max Mehl
|
2017-04-22 22:28:30 +02:00
|
|
|
iab _b Best,<C-M>Max
|
|
|
|
|
iab _br Best regards,<C-M>Max
|
|
|
|
|
iab _brm Best regards,<C-M>Max Mehl
|
2017-05-26 11:20:41 +02:00
|
|
|
iab _s Sincerely,<C-M>Max Mehl
|
2017-04-22 22:28:30 +02:00
|
|
|
|
|
|
|
|
" highlight CApital LEtter TYpos
|
|
|
|
|
:match Title /\<\u\{2}\l.\{-}\>/
|
|
|
|
|
|
|
|
|
|
" Auto-replace dumb typos
|
|
|
|
|
iab teh the
|
2017-04-23 22:22:52 +02:00
|
|
|
iab Teh The
|
2017-04-22 22:28:30 +02:00
|
|
|
iab MAx Max
|
|
|
|
|
|
2019-11-05 16:29:59 +01:00
|
|
|
" Shortcuts for long words
|
|
|
|
|
iab _fsfe Free Software Foundation Europe
|
|
|
|
|
|
2017-04-22 22:28:30 +02:00
|
|
|
"" Spell checking
|
|
|
|
|
setlocal spell spelllang=en_gb " default: EN spellcheck
|
|
|
|
|
|
|
|
|
|
" Disable spell check
|
2017-04-23 22:45:12 +02:00
|
|
|
nmap <F2> :setlocal spell!<CR>
|
|
|
|
|
map! <F2> <ESC>:setlocal spell!<CR>li
|
2017-04-22 22:28:30 +02:00
|
|
|
|
|
|
|
|
" EN spell check
|
2017-04-23 22:45:12 +02:00
|
|
|
nmap <F3> :setlocal spell spelllang=en_gb<CR>
|
|
|
|
|
map! <F3> <ESC>:setlocal spell spelllang=en_gb<CR>li
|
2017-04-22 22:28:30 +02:00
|
|
|
|
|
|
|
|
" DE spell check
|
2017-04-23 22:45:12 +02:00
|
|
|
nmap <F4> :setlocal spell spelllang=de_20<CR>
|
|
|
|
|
map! <F4> <ESC>:setlocal spell spelllang=de_20<CR>li
|
|
|
|
|
|
|
|
|
|
" highlight words for better writing ( http://mashable.com/2015/05/03/words-eliminate-vocabulary/ )
|
|
|
|
|
match Todo /\<that\>\c\|\<went\>\c\|\<honestly\>\c\|\<absolutely\>\c\|\<very\>\c\|\<really\>\c\|\<amazing\>\c\|\<always\>\c\|\<never\>\c\|\<literally\>\c\|\<just\>\c\|\<maybe\>\c\|\<stuff\>\c\|\<thing\>\c\|\<irregardless\>\c/
|
2017-11-14 12:46:00 +01:00
|
|
|
|
|
|
|
|
" LanguageTool plugin
|
|
|
|
|
let g:languagetool_jar='/home/max/bin/languagetool/languagetool-commandline.jar'
|
2018-01-18 18:13:45 +01:00
|
|
|
|
|
|
|
|
" Cut current email address
|
|
|
|
|
nnoremap <M-x> BvEx
|