From: Christian Brabandt Date: Wed, 22 Jul 2026 21:49:18 +0000 (+0000) Subject: runtime(spellfile): xdg: Do not assume $HOME/.vim directory X-Git-Url: http://git.ipfire.org/gitweb/index.cgi?a=commitdiff_plain;ds=sidebyside;p=thirdparty%2Fvim.git runtime(spellfile): xdg: Do not assume $HOME/.vim directory fixes: #20794 Signed-off-by: Christian Brabandt --- 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"