aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2019-06-11 09:50:54 +1200
committerTom Ryder <tom@sanctum.geek.nz>2019-06-11 09:50:54 +1200
commitd280a6d093cddeeb3c36cd9af7080cde85797a04 (patch)
treeaeac6afd39e5afb0957ff5cf19a1e2df5b2e075f
parentMove spellfile local mapping into function (diff)
downloaddotfiles-d280a6d093cddeeb3c36cd9af7080cde85797a04.tar.gz
dotfiles-d280a6d093cddeeb3c36cd9af7080cde85797a04.zip
Factor our :AddLocalSpellFile command
-rw-r--r--vim/plugin/spellfile_local.vim2
1 files changed, 2 insertions, 0 deletions
diff --git a/vim/plugin/spellfile_local.vim b/vim/plugin/spellfile_local.vim
index 6e04babf..b5db4518 100644
--- a/vim/plugin/spellfile_local.vim
+++ b/vim/plugin/spellfile_local.vim
@@ -24,4 +24,6 @@ function! AddLocalSpellfile() abort
nnoremap <buffer> zG 2zg
endfunction
autocmd vimrc BufRead *
+
+command! AddLocalSpellFile
\ call AddLocalSpellFile()