diff options
Diffstat (limited to 'vim/plugin/spellfile_local.vim')
-rw-r--r-- | vim/plugin/spellfile_local.vim | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/vim/plugin/spellfile_local.vim b/vim/plugin/spellfile_local.vim index b5db4518..285618f8 100644 --- a/vim/plugin/spellfile_local.vim +++ b/vim/plugin/spellfile_local.vim @@ -23,7 +23,11 @@ function! AddLocalSpellfile() abort execute 'setlocal spellfile+=$MYVIM/cache/spell/local/'.spellfile nnoremap <buffer> zG 2zg endfunction -autocmd vimrc BufRead * command! AddLocalSpellFile \ call AddLocalSpellFile() + +augroup spellfile_local + autocmd BufRead * + \ AddLocalSpellfile +augroup END |