diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2020-01-06 13:37:18 +1300 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2020-01-06 13:37:18 +1300 |
commit | 9031dd8eba9712b9e7b64093e9b45263184a9cb2 (patch) | |
tree | 2aa5c68dfda8176e64266a182764af7389106767 | |
parent | Remove stray word at the end of a comment (diff) | |
download | vim-spellfile-local-9031dd8eba9712b9e7b64093e9b45263184a9cb2.tar.gz vim-spellfile-local-9031dd8eba9712b9e7b64093e9b45263184a9cb2.zip |
Specify internal wordlist remaps as buffer-local
-rw-r--r-- | autoload/spellfile_local.vim | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/autoload/spellfile_local.vim b/autoload/spellfile_local.vim index 27399f2..92ace4c 100644 --- a/autoload/spellfile_local.vim +++ b/autoload/spellfile_local.vim @@ -76,14 +76,14 @@ function! spellfile_local#() abort " Remap the internal word list mappings to use the second entry in " the new local 'spellfile' if get(g:, 'spellfile_local_remap_internal', 1) - nnoremap zG 2zg - xnoremap zG 2zg - nnoremap zW 2zw - xnoremap zW 2zw - nnoremap zuG 2zug - xnoremap zuG 2zug - nnoremap zuW 2zuw - xnoremap zuW 2zuw + nnoremap <buffer> zG 2zg + xnoremap <buffer> zG 2zg + nnoremap <buffer> zW 2zw + xnoremap <buffer> zW 2zw + nnoremap <buffer> zuG 2zug + xnoremap <buffer> zuG 2zug + nnoremap <buffer> zuW 2zuw + xnoremap <buffer> zuW 2zuw endif endfunction |