From 7e3f06ef5e0d92a74512bd6f829b9b3e05967e29 Mon Sep 17 00:00:00 2001 From: Matthew Lemon Date: Wed, 11 Oct 2023 12:10:50 +0100 Subject: Turns on spelling for textfiles I think this applies to markdown and txt files. Got this from https://dmerej.info/blog/post/syntax-highlighting-is-useless/ Having spelling highlights on the text is cool. --- vim/vimrc | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/vim/vimrc b/vim/vimrc index 0481b81..dfb2409 100644 --- a/vim/vimrc +++ b/vim/vimrc @@ -356,4 +356,15 @@ nnoremap :GitFZF " Switching off colours {{{ syntax off hi Visual term=reverse ctermbg=7 ctermfg=black guifg=black guibg=LightPink +hi SpellBad term=reverse ctermbg=224 gui=undercurl guisp=Red guibg=Red +hi SpellCap term=reverse ctermbg=224 gui=undercurl guisp=Red guibg=Red +hi SpellRare term=reverse ctermbg=224 gui=undercurl guisp=Red guibg=Blue + +" }}} +" Turn spelling on for text files {{{ +" from - https://dmerej.info/blog/post/syntax-highlighting-is-useless/ +augroup textfiles + autocmd! + autocmd filetype markdown :setlocal spell spelllang=en | syntax clear +augroup end " }}} -- cgit v1.2.3