aboutsummaryrefslogtreecommitdiff
path: root/vim/config/spell.vim
blob: c34a6cc38dda77d8f0d30ed1753b1925d0a225c2 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
" Configure spell checking features, if available
if has('spell')

  " Don't check spelling by default, but bind \s to toggle this
  set nospell
  nnoremap <leader>s :setlocal spell!<CR>

  " Use New Zealand English for spelling by default (it's almost identical
  " to British English), but bind \u to switch to US English and \z to
  " switch back
  set spelllang=en_nz
  nnoremap <leader>u :setlocal spelllang=en_us<CR>
  nnoremap <leader>z :setlocal spelllang=en_nz<CR>
endif