aboutsummaryrefslogtreecommitdiff
path: root/vim
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2013-07-18 21:02:06 +1200
committerTom Ryder <tom@sanctum.geek.nz>2013-07-18 21:02:06 +1200
commite3ac0069d436810eeff074ff80aa26e275b72760 (patch)
tree0ffe551811d93b9cf7d6d00afa5f100803c7b6ff /vim
parentDon't hide files with trailing tildes in netrw (diff)
downloaddotfiles-e3ac0069d436810eeff074ff80aa26e275b72760.tar.gz
dotfiles-e3ac0069d436810eeff074ff80aa26e275b72760.zip
Explicitly set nospell, add spelllang switches
For conveniently moving between US and NZ English, as I often need to do
Diffstat (limited to 'vim')
-rw-r--r--vim/vimrc5
1 files changed, 4 insertions, 1 deletions
diff --git a/vim/vimrc b/vim/vimrc
index 1287cb6d..ed0df32d 100644
--- a/vim/vimrc
+++ b/vim/vimrc
@@ -158,8 +158,11 @@ endif
" Spelling
if has('spell')
- set spelllang=en_nz
+ set nospell
nnoremap <leader>s :setlocal spell!<CR>
+ set spelllang=en_nz
+ nnoremap <leader>u :setlocal spelllang=en_us<CR>
+ nnoremap <leader>z :setlocal spelllang=en_nz<CR>
endif
" State