split vim config

This commit is contained in:
2021-04-25 22:04:51 +02:00
parent e135d0bd55
commit f50bbe77ab
10 changed files with 71 additions and 73 deletions

22
vim/.vim/_spellcheck.vim Normal file
View File

@@ -0,0 +1,22 @@
setlocal spell spelllang=en_gb " default: EN spellcheck
" Disable spell check
nmap <F2> :setlocal spell!<CR>
map! <F2> <ESC>:setlocal spell!<CR>li
" EN spell check
nmap <F3> :setlocal spell spelllang=en_gb<CR>
map! <F3> <ESC>:setlocal spell spelllang=en_gb<CR>li
" DE spell check
nmap <F4> :setlocal spell spelllang=de_20<CR>
map! <F4> <ESC>:setlocal spell spelllang=de_20<CR>li
" highlight CApital LEtter TYpos
:match Title /\<\u\{2}\l.\{-}\>/
" 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/
" LanguageTool plugin
let g:languagetool_jar='/home/max/bin/languagetool/languagetool-commandline.jar'