path: root/vim
diff options
authorTom Ryder <tom@sanctum.geek.nz>2019-12-19 17:06:25 +1300
committerTom Ryder <tom@sanctum.geek.nz>2019-12-19 17:07:54 +1300
commit592db60deaae4a2587af1be0fe404a1b610eb85d (patch)
tree51d2275c4a49a7db95cee07ae4a3e3ca46dde022 /vim
parentComment and clean up new Vim configuration (diff)
Remove complex 'spellfile' setting
I'll replace and extend this functionality with a new plugin shortly.
Diffstat (limited to 'vim')
1 files changed, 2 insertions, 25 deletions
diff --git a/vim/vimrc b/vim/vimrc
index 91424fd1..07f979b8 100644
--- a/vim/vimrc
+++ b/vim/vimrc
@@ -2,7 +2,7 @@
" Tom Ryder (tejr)’s Literate Vimrc
" ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
-" Last updated: Wed, 18 Dec 2019 16:02:05 +1300
+" Last updated: Thu, 19 Dec 2019 17:07:46 +1300
" │ And I was lifted up in heart, and thought
" │ Of all my late-shown prowess in the lists,
@@ -300,32 +300,9 @@ endif
" For spelling, use New Zealand English by default, but later on we’ll
" configure a leader mapping to switch to United States English, since I so
-" often have to write for Yankees. We’ll set the 'spellfile' option too, to
-" place it in the cache directory into which we’ve been putting everything.
-" We’ll follow Vim’s standard naming convention for the file itself, though.
-" If available, my plugin spellfile_local.vim will extend this later to add
-" more spelling word lists per filetype and per file.
-" We briefly set 'isfname' to every character but NUL if we’re using Unix,
-" since Vim uses it internally for 'spellfile' assignment to decide whether
-" the path is valid. We put it back immediately afterwards.
+" often have to write for Yankees.
set spelllang=en_nz
-let s:spelllang = split#Option(&spelllang)
-let s:spellfile = $MYVIM.'/spell/'.join([
- \ split(s:spelllang[0], '_')[0], &encoding, 'add',
- \], '.')
-if has#('unix')
- let s:isfname = &isfname
- set isfname=1-255
-set spellfile&
-execute 'set spellfile^='.escape#Arg(escape#Item(s:spellfile))
-if exists('s:isfname')
- execute 'set isfname='.escape#Arg(s:isfname)
- unlet s:isfname
-CreatePath $MYVIM/spell
" Spell checking includes optional support for catching lower case letters at
" the start of sentences, and defines a pattern in 'spellcapcheck' for the end