summaryrefslogtreecommitdiff
path: root/nvim
diff options
context:
space:
mode:
authorEkaitz Zárraga <ekaitz.zarraga@gmail.com>2017-04-13 13:58:49 +0200
committerEkaitz Zárraga <ekaitz.zarraga@gmail.com>2017-04-13 13:58:49 +0200
commit1d28f6eab97c685ae848bebbcc6d1e18fc4769cc (patch)
treef0243f2b856c0b090c34a84a95b4ac3e4bd6b094 /nvim
parent2c463ff9e1602716343abb399a362fa4d0598c04 (diff)
Highlight bad spelling
Diffstat (limited to 'nvim')
-rw-r--r--nvim/nvim/ftplugin/drowmark.vim4
-rw-r--r--nvim/nvim/ftplugin/markdown.vim4
-rw-r--r--nvim/nvim/init.vim6
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 <CR> :noh<CR><CR>
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