Diffstat (limited to 'vim/vimrc')
1 files changed, 2 insertions, 25 deletions
@@ -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.
-let s:spelllang = split#Option(&spelllang)
-let s:spellfile = $MYVIM.'/spell/'.join([
- \ split(s:spelllang, '_'), &encoding, 'add',
- \], '.')
- let s:isfname = &isfname
- set isfname=1-255
-execute 'set spellfile^='.escape#Arg(escape#Item(s:spellfile))
- execute 'set isfname='.escape#Arg(s:isfname)
- unlet s:isfname
" Spell checking includes optional support for catching lower case letters at
" the start of sentences, and defines a pattern in 'spellcapcheck' for the end