From 1d28f6eab97c685ae848bebbcc6d1e18fc4769cc Mon Sep 17 00:00:00 2001 From: Ekaitz Zárraga Date: Thu, 13 Apr 2017 13:58:49 +0200 Subject: Highlight bad spelling --- nvim/nvim/ftplugin/drowmark.vim | 4 ---- nvim/nvim/ftplugin/markdown.vim | 4 ---- nvim/nvim/init.vim | 6 ++++++ 3 files changed, 6 insertions(+), 8 deletions(-) diff --git a/nvim/nvim/ftplugin/drowmark.vim b/nvim/nvim/ftplugin/drowmark.vim index b4e4a0b..cd69f30 100644 --- a/nvim/nvim/ftplugin/drowmark.vim +++ b/nvim/nvim/ftplugin/drowmark.vim @@ -14,10 +14,6 @@ augroup SENTENCES autocmd InsertCharPre * if &ft=='drowmark' | if search('\v(%^|[.!?]\_s+|\_^\-\s|\_^title\:\s|\n\n)%#', 'bcnw') != 0 | let v:char = toupper(v:char) | endif | endif augroup END -" Highlight spelling errors in red and underline -hi clear SpellBad -hi SpellBad cterm=underline ctermfg=Red - " Tabs to 2 spaces set tabstop=2 softtabstop=0 expandtab shiftwidth=2 set autoindent diff --git a/nvim/nvim/ftplugin/markdown.vim b/nvim/nvim/ftplugin/markdown.vim index b85b977..5512cee 100644 --- a/nvim/nvim/ftplugin/markdown.vim +++ b/nvim/nvim/ftplugin/markdown.vim @@ -10,10 +10,6 @@ augroup SENTENCES autocmd InsertCharPre * if &ft=='markdown' | if search('\v(%^|[.!?]\_s+|\_^\-\s|\_^title\:\s|\n\n)%#', 'bcnw') != 0 | let v:char = toupper(v:char) | endif | endif augroup END -" Highlight spelling errors in red and underline -hi clear SpellBad -hi SpellBad cterm=underline ctermfg=Red guifg=Red gui=underline - " Tabs to 2 spaces set tabstop=2 softtabstop=0 expandtab shiftwidth=2 set autoindent diff --git a/nvim/nvim/init.vim b/nvim/nvim/init.vim index 3cee3d7..c4fb4ec 100644 --- a/nvim/nvim/init.vim +++ b/nvim/nvim/init.vim @@ -85,6 +85,12 @@ nnoremap :noh set ignorecase set smartcase +" SPELLING + +" Highlight spelling errors in red and underline +hi clear SpellBad +hi SpellBad cterm=underline ctermfg=Red guifg=Red gui=underline + " TEXT WIDTH -- cgit v1.2.3