aboutsummaryrefslogtreecommitdiff
path: root/vim/plugin
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2019-06-11 09:49:09 +1200
committerTom Ryder <tom@sanctum.geek.nz>2019-06-11 09:49:09 +1200
commit31662311f9f8f65dd63be05c1474e5d3df77fa95 (patch)
tree281e20ae4f1ea0ac74b9d69dc08ee76736cc9af4 /vim/plugin
parentFactor out :FileTypeReload into a function (diff)
downloaddotfiles-31662311f9f8f65dd63be05c1474e5d3df77fa95.tar.gz
dotfiles-31662311f9f8f65dd63be05c1474e5d3df77fa95.zip
Move spellfile local mapping into function
Diffstat (limited to 'vim/plugin')
-rw-r--r--vim/plugin/spellfile_local.vim3
1 files changed, 2 insertions, 1 deletions
diff --git a/vim/plugin/spellfile_local.vim b/vim/plugin/spellfile_local.vim
index 302854f4..6e04babf 100644
--- a/vim/plugin/spellfile_local.vim
+++ b/vim/plugin/spellfile_local.vim
@@ -21,6 +21,7 @@ function! AddLocalSpellfile() abort
\ ], '.') . '.add'
setlocal spellfile<
execute 'setlocal spellfile+=$MYVIM/cache/spell/local/'.spellfile
+ nnoremap <buffer> zG 2zg
endfunction
autocmd vimrc BufRead *
- \ call AddLocalSpellfile() | nnoremap <buffer> zG 2zg
+ \ call AddLocalSpellFile()