From 42df9e7cf33e49e7ffec8c3935fc7bd5719bbe19 Mon Sep 17 00:00:00 2001 From: Integralist Date: Fri, 24 Oct 2014 17:13:10 +0100 Subject: [PATCH] American spelling correction --- .vimrc | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/.vimrc b/.vimrc index c2dcdfa..da6a49a 100644 --- a/.vimrc +++ b/.vimrc @@ -325,15 +325,15 @@ endif " Reset spelling colours when reading a new buffer " This works around an issue where the colorscheme is changed by .local.vimrc -fun! SetSpellingColours() +fun! SetSpellingColors() highlight SpellBad cterm=bold ctermfg=white ctermbg=red highlight SpellCap cterm=bold ctermfg=red ctermbg=white endfun -autocmd BufWinEnter * call SetSpellingColours() -autocmd BufNewFile * call SetSpellingColours() -autocmd BufRead * call SetSpellingColours() -autocmd InsertEnter * call SetSpellingColours() -autocmd InsertLeave * call SetSpellingColours() +autocmd BufWinEnter * call SetSpellingColors() +autocmd BufNewFile * call SetSpellingColors() +autocmd BufRead * call SetSpellingColors() +autocmd InsertEnter * call SetSpellingColors() +autocmd InsertLeave * call SetSpellingColors() " Change colourscheme when diffing fun! SetDiffColors()