aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2019-06-11 10:22:31 +1200
committerTom Ryder <tom@sanctum.geek.nz>2019-06-11 10:22:31 +1200
commit40f378c7655e307954726ebd12bf22683c295a57 (patch)
tree6f3d2722e0ca90b2d9365957b174db9dcb7628b3
parentUse dedicated augroup for local spellfile (diff)
downloaddotfiles-40f378c7655e307954726ebd12bf22683c295a57.tar.gz
dotfiles-40f378c7655e307954726ebd12bf22683c295a57.zip
Correct case errors in local spell file names
-rw-r--r--vim/plugin/spellfile_local.vim6
1 files changed, 3 insertions, 3 deletions
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