summaryrefslogtreecommitdiff
path: root/runtime
diff options
context:
space:
mode:
Diffstat (limited to 'runtime')
-rw-r--r--runtime/autoload/spellfile.vim10
1 files changed, 8 insertions, 2 deletions
diff --git a/runtime/autoload/spellfile.vim b/runtime/autoload/spellfile.vim
index 1ca76a4ae..9979f1bd0 100644
--- a/runtime/autoload/spellfile.vim
+++ b/runtime/autoload/spellfile.vim
@@ -1,9 +1,15 @@
" Vim script to download a missing spell file
" Maintainer: Bram Moolenaar <Bram@vim.org>
-" Last Change: 2008 May 29
+" Last Change: 2008 Jun 27
if !exists('g:spellfile_URL')
- let g:spellfile_URL = 'ftp://ftp.vim.org/pub/vim/runtime/spell'
+ " Prefer using http:// when netrw should be able to use it, since
+ " more firewalls let this through.
+ if executable("curl") || executable("wget") || executable("fetch")
+ let g:spellfile_URL = 'http://ftp.vim.org/pub/vim/runtime/spell'
+ else
+ let g:spellfile_URL = 'ftp://ftp.vim.org/pub/vim/runtime/spell'
+ endif
endif
let s:spellfile_URL = '' " Start with nothing so that s:donedict is reset.