aboutsummaryrefslogtreecommitdiff
path: root/vim
diff options
context:
space:
mode:
Diffstat (limited to 'vim')
-rw-r--r--vim/vimrc27
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
-endif
-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
-endif
-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