From 40f378c7655e307954726ebd12bf22683c295a57 Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Tue, 11 Jun 2019 10:22:31 +1200 Subject: Correct case errors in local spell file names --- vim/plugin/spellfile_local.vim | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'vim/plugin') diff --git a/vim/plugin/spellfile_local.vim b/vim/plugin/spellfile_local.vim index 285618f8..b6acd7b3 100644 --- a/vim/plugin/spellfile_local.vim +++ b/vim/plugin/spellfile_local.vim @@ -11,9 +11,9 @@ let spellfile = join([ \ ], '.') . '.add' execute 'set spellfile=$MYVIM/cache/spell/'.spellfile -EnsureDir $MYVIM/cache/spell/local +Establish $MYVIM/cache/spell/local -function! AddLocalSpellfile() abort +function! AddLocalSpellFile() abort let spellfile = join([ \ substitute(expand('%:p'), '[^0-9A-Za-z_.-]', '%', 'g'), \ substitute(v:lang, '_.*', '', ''), @@ -29,5 +29,5 @@ command! AddLocalSpellFile augroup spellfile_local autocmd BufRead * - \ AddLocalSpellfile + \ AddLocalSpellFile augroup END -- cgit v1.2.3