4 From: Bram Moolenaar <Bram@moolenaar.net>
6 Content-Type: text/plain; charset=ISO-8859-1
7 Content-Transfer-Encoding: 8bit
10 Patch 7.0.076 (after 7.0.010)
11 Problem: Automatic downloading of spell files only works for ftp.
12 Solution: Don't add login and password for non-ftp URLs. (Alexander Patrakov)
13 Files: runtime/autoload/spellfile.vim
16 *** ../vim-7.0.075/runtime/autoload/spellfile.vim Sat May 13 14:29:16 2006
17 --- runtime/autoload/spellfile.vim Tue Aug 29 22:17:03 2006
20 " Vim script to download a missing spell file
21 " Maintainer: Bram Moolenaar <Bram@vim.org>
22 ! " Last Change: 2006 May 10
24 if !exists('g:spellfile_URL')
25 let g:spellfile_URL = 'ftp://ftp.vim.org/pub/vim/runtime/spell'
27 " Vim script to download a missing spell file
28 " Maintainer: Bram Moolenaar <Bram@vim.org>
29 ! " Last Change: 2006 Aug 29
31 if !exists('g:spellfile_URL')
32 let g:spellfile_URL = 'ftp://ftp.vim.org/pub/vim/runtime/spell'
38 ! " Read "fname" from the ftp server.
39 function! spellfile#Nread(fname)
40 ! let machine = substitute(g:spellfile_URL, 'ftp://\([^/]*\).*', '\1', '')
41 ! let dir = substitute(g:spellfile_URL, 'ftp://[^/]*/\(.*\)', '\1', '')
42 ! exe 'Nread "' . machine . ' anonymous vim7user ' . dir . '/' . a:fname . '"'
48 ! " Read "fname" from the server.
49 function! spellfile#Nread(fname)
50 ! if g:spellfile_URL =~ '^ftp://'
51 ! " for an ftp server use a default login and password to avoid a prompt
52 ! let machine = substitute(g:spellfile_URL, 'ftp://\([^/]*\).*', '\1', '')
53 ! let dir = substitute(g:spellfile_URL, 'ftp://[^/]*/\(.*\)', '\1', '')
54 ! exe 'Nread "' . machine . ' anonymous vim7user ' . dir . '/' . a:fname . '"'
56 ! exe 'Nread ' g:spellfile_URL . '/' . a:fname
59 *** ../vim-7.0.075/src/version.c Tue Aug 29 21:59:25 2006
60 --- src/version.c Tue Aug 29 22:31:45 2006
64 { /* Add new patch number below this line */
70 This sentence is not sure that it exists, but if it does, it will
71 certainly consider the possibility that other sentences exist.
73 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
74 /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
75 \\\ download, build and distribute -- http://www.A-A-P.org ///
76 \\\ help me help AIDS victims -- http://ICCF-Holland.org ///