diff options
author | Bram Moolenaar <Bram@vim.org> | 2008-06-27 18:58:11 +0000 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2008-06-27 18:58:11 +0000 |
commit | 4a630f6fc42e06f778da73d1a6ac3e1cb1ce6f20 (patch) | |
tree | 2f91763dcc7fad12f90f039f5e0529e2a7a12ba3 /runtime | |
parent | b23a7e84638354dd99f9a22c99d8a537b5b70635 (diff) | |
download | vim-git-4a630f6fc42e06f778da73d1a6ac3e1cb1ce6f20.tar.gz |
updated for version 7.2a-004v7.2a.004
Diffstat (limited to 'runtime')
-rw-r--r-- | runtime/autoload/spellfile.vim | 10 |
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. |