From b9b2fb7d5d032d2618fd5cefc185cab4a034a351 Mon Sep 17 00:00:00 2001 From: James McCoy Date: Mon, 6 Nov 2017 15:54:00 -0500 Subject: spellfile.vim: Search for a writable directory on Windows Fixes #6664 until #6272 is merged and sdtpath('data') can be used. --- runtime/autoload/spellfile.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/runtime/autoload/spellfile.vim b/runtime/autoload/spellfile.vim index fe7113b9a4..84584c6e29 100644 --- a/runtime/autoload/spellfile.vim +++ b/runtime/autoload/spellfile.vim @@ -197,7 +197,7 @@ function! spellfile#WritableSpellDir() " Always use the $XDG_DATA_HOME/nvim/site directory if exists('$XDG_DATA_HOME') return $XDG_DATA_HOME . "/nvim/site/spell" - else + elseif !(has('win32') || has('win64')) return $HOME . "/.local/share/nvim/site/spell" endif for dir in split(&rtp, ',') -- cgit