diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2017-11-03 20:35:23 +1300 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2017-11-03 20:35:23 +1300 |
commit | 3f586a3d48bb04ef9206a202235b54cfcec38859 (patch) | |
tree | a397b67d51b09fb8de35eabe004e2bc22693c207 /vim/config/spell.vim | |
parent | Merge branch 'hotfix/v0.4.2' into develop (diff) | |
download | dotfiles-3f586a3d48bb04ef9206a202235b54cfcec38859.tar.gz dotfiles-3f586a3d48bb04ef9206a202235b54cfcec38859.zip |
Use <Leader>/<LocalLeader> correctly in Vim config
From ":help <LocalLeader>":
> In a global plugin <Leader> should be used and in a filetype plugin
> <LocalLeader>. "mapleader" and "maplocalleader" can be equal.
Diffstat (limited to 'vim/config/spell.vim')
-rw-r--r-- | vim/config/spell.vim | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/vim/config/spell.vim b/vim/config/spell.vim index 046b50ff..6a0167d0 100644 --- a/vim/config/spell.vim +++ b/vim/config/spell.vim @@ -3,12 +3,12 @@ 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 <Leader>s :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 <Leader>u :setlocal spelllang=en_us spelllang?<CR> + nnoremap <Leader>z :setlocal spelllang=en_nz spelllang?<CR> endif |