aboutsummaryrefslogtreecommitdiff
path: root/vim/vimrc
diff options
context:
space:
mode:
Diffstat (limited to 'vim/vimrc')
-rw-r--r--vim/vimrc22
1 files changed, 0 insertions, 22 deletions
diff --git a/vim/vimrc b/vim/vimrc
index 737b9fd6..95ca61ae 100644
--- a/vim/vimrc
+++ b/vim/vimrc
@@ -902,28 +902,6 @@ if $MYVIM !=# '' && $MYVIM !~# '[*?[|;&<>\r\n]'
set thesaurus^=$MYVIM/ref/thesaurus.txt
endif
-EnsureDir $MYVIM/cache/spell
-
-let spellfile = join([
- \ substitute(v:lang, '_.*', '', ''),
- \ &encoding
- \ ], '.') . '.add'
-execute 'set spellfile=$MYVIM/cache/spell/'.spellfile
-
-EnsureDir $MYVIM/cache/spell/local
-
-function! AddLocalSpellfile() abort
- let spellfile = join([
- \ substitute(expand('%:p'), '[^0-9A-Za-z_.-]', '%', 'g'),
- \ substitute(v:lang, '_.*', '', ''),
- \ &encoding
- \ ], '.') . '.add'
- setlocal spellfile<
- execute 'setlocal spellfile+=$MYVIM/cache/spell/local/'.spellfile
-ndfunction!
-autocmd vimrc BufRead *
- \ call AddLocalSpellfile() | nnoremap <buffer> zG 2zg
-
" Use all of the filetype detection, plugin, and indent support available.
" I define my own filetype.vim and scripts.vim files for filetype detection,
" in a similar but not identical form to the stock runtime files. I also