Your message dated Thu, 26 Jun 2008 22:09:10 -0400
with message-id <[EMAIL PROTECTED]>
has caused the report #487221,
regarding use http by default with spellfile.vim
to be marked as having been forwarded to the upstream software
author(s) Bram Moolenaar <[EMAIL PROTECTED]>
(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [EMAIL PROTECTED]
immediately.)
--
487221: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=487221
Debian Bug Tracking System
Contact [EMAIL PROTECTED] with problems
--- Begin Message ---
Bram,
By default, the "spellfile retrieval" functionality uses an ftp url to
fetch the spellfiles. Since ftp is more problematic than http (passive
vs. active connections), it seems useful to try to use a non-ftp
protocol. The attached patch sets the default spellfile URL to an http
url if the wget or curl commands are available. Otherwise, the current
behavior is preserved.
--
James
GPG Key: 1024D/61326D40 2003-09-02 James Vega <[EMAIL PROTECTED]>
diff --git a/runtime/autoload/spellfile.vim b/runtime/autoload/spellfile.vim
index 1ca76a4..5b2f596 100644
--- a/runtime/autoload/spellfile.vim
+++ b/runtime/autoload/spellfile.vim
@@ -3,7 +3,11 @@
" Last Change: 2008 May 29
if !exists('g:spellfile_URL')
- let g:spellfile_URL = 'ftp://ftp.vim.org/pub/vim/runtime/spell'
+ if executable('wget') or executable('curl')
+ 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.
signature.asc
Description: Digital signature
--- End Message ---