diff options
Diffstat (limited to 'vim/config/spell.vim')
-rw-r--r-- | vim/config/spell.vim | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/vim/config/spell.vim b/vim/config/spell.vim index 6a0167d0..7775ade9 100644 --- a/vim/config/spell.vim +++ b/vim/config/spell.vim @@ -3,12 +3,18 @@ if has('spell') " Don't check spelling by default, but bind \s to toggle this set nospell - nnoremap <Leader>s :setlocal spell! spell?<CR> + nnoremap <silent> + \ <Leader>s + \ :<C-U>setlocal spell! 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 spelllang?<CR> - nnoremap <Leader>z :setlocal spelllang=en_nz spelllang?<CR> + nnoremap <silent> + \ <Leader>u + \ :<C-U>setlocal spelllang=en_us spelllang?<CR> + nnoremap <silent> + \ <Leader>z + \ :<C-U>setlocal spelllang=en_nz spelllang?<CR> endif |