aboutsummaryrefslogtreecommitdiff
path: root/vim/config/spell.vim
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2017-11-05 00:41:40 +1300
committerTom Ryder <tom@sanctum.geek.nz>2017-11-05 00:41:40 +1300
commit2044d97b03c31083cc0bb47a3f65d729d98f558b (patch)
treef41874a69203faf1f1e5780925b06e84310a9eeb /vim/config/spell.vim
parentMerge branch 'release/v0.7.0' (diff)
parentBump version number to 0.8.0 (diff)
downloaddotfiles-fdbeadf21f5b934454f33cbf97e05d9d2afe25ea.tar.gz (sig)
dotfiles-fdbeadf21f5b934454f33cbf97e05d9d2afe25ea.zip
Merge branch 'release/v0.8.0'v0.8.0
* release/v0.8.0: Bump version number to 0.8.0 Use BufReadPost hook for big_file_options.vim Limit search highlighting hooks to Vim >= 7.1 Add explanatory note for choosing imperfect remap Set 'guioptions' flag by flag Use variable setting approach for 'guifont' Add short-circuit boilerplate to plugins Simplify shell linting code with single vars Use spaces around concat dots in VimL consistently Remove vim/bundle/html5 submodule Remove vim/bundle/targets submodule Adjust plugin code layout a lot
Diffstat (limited to 'vim/config/spell.vim')
-rw-r--r--vim/config/spell.vim12
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