From 27cfd1cf476d355060cd46bf7655ea547461ee0e Mon Sep 17 00:00:00 2001 From: Christian Brabandt Date: Wed, 22 Jul 2026 21:49:18 +0000 Subject: [PATCH] runtime(spellfile): xdg: Do not assume $HOME/.vim directory fixes: #20794 Signed-off-by: Christian Brabandt --- runtime/autoload/spellfile.vim | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/runtime/autoload/spellfile.vim b/runtime/autoload/spellfile.vim index 43f7dffa1a..2061676e21 100644 --- a/runtime/autoload/spellfile.vim +++ b/runtime/autoload/spellfile.vim @@ -1,6 +1,6 @@ " Vim script to download a missing spell file " Maintainer: The Vim Project -" Last Change: 2023 Aug 10 +" Last Change: 2026 Jul 22 " Former Maintainer: Bram Moolenaar if !exists('g:spellfile_URL') @@ -194,10 +194,6 @@ function! spellfile#GetDirChoices() endfunc function! spellfile#WritableSpellDir() - if has("unix") - " For Unix always use the $HOME/.vim directory - return $HOME . "/.vim/spell" - endif for dir in split(&rtp, ',') if filewritable(dir) == 2 return dir . "/spell" -- 2.47.3