On Thu, Jun 26, 2008 at 10:09:10PM -0400, James Vega wrote:
> 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.

Accidentally used "or" instead of "||".  Corrected patch attached.

-- 
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..1c0092f 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') || 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.
 

Attachment: signature.asc
Description: Digital signature

Reply via email to