diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2020-05-15 01:16:01 +1200 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2020-05-15 01:16:01 +1200 |
commit | c6d88d4bc8b28527be312c760e305621d974890f (patch) | |
tree | cd967f9893c5112fd2b1a719d0c5563dc817fbca /vim | |
parent | Add Mutt config match patterns for XDG (diff) | |
download | dotfiles-c6d88d4bc8b28527be312c760e305621d974890f.tar.gz dotfiles-c6d88d4bc8b28527be312c760e305621d974890f.zip |
Don't put spell in cache, update spell plugin
Spell files should go in the XDG data dirs, ideally; update to a version
of spellfile_local.vim that allows that, with the necessary
configuration in ~/.vim/after/plugin.
Diffstat (limited to 'vim')
-rw-r--r-- | vim/after/plugin/spellfile_local.vim | 7 | ||||
m--------- | vim/bundle/spellfile_local | 0 | ||||
-rw-r--r-- | vim/vimrc | 11 |
3 files changed, 8 insertions, 10 deletions
diff --git a/vim/after/plugin/spellfile_local.vim b/vim/after/plugin/spellfile_local.vim new file mode 100644 index 00000000..b40736ab --- /dev/null +++ b/vim/after/plugin/spellfile_local.vim @@ -0,0 +1,7 @@ +"if xdg#['data']['home'] !=# '' +" let g:spellfile_local_dirs = [ xdg#['data']['home'] ] +" call extend( +" \ g:spellfile_local_dirs, +" \ copy(xdg#['data']['dirs']) +" \) +"endif diff --git a/vim/bundle/spellfile_local b/vim/bundle/spellfile_local -Subproject cb792a082202bba673ccf0f6f58a8ce2cf44f07 +Subproject 4fcb24eb8a331efff973585377606e6a3a018fc @@ -2,7 +2,7 @@ " Tom Ryder (tejr)’s Literate Vimrc " ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ " -" Last updated: Mon, 11 May 2020 09:22:45 UTC +" Last updated: Thu, 14 May 2020 08:24:17 UTC " " │ And I was lifted up in heart, and thought " │ Of all my late-shown prowess in the lists, @@ -165,15 +165,6 @@ if !empty(s:xdgconfigpaths) endif unlet s:xdgconfigpaths -" Now put the XDG cache home at the very front, so that e.g. 'spellfile' gets -" created in there rather than in the configuration directories. -" -if xdg#['cache']['home'] !=# '' - execute 'set runtimepath^='.option#Escape( - \ option#item#Escape(xdg#['cache']['home']) - \) -endif - " We need a command to reliably establish a full path, whether or not the " directories already exist. We create a wrapper for the autoloaded function " path#Create() with similar calling conventions to mkdir(), but with the ‘p’ |