4 From: Bram Moolenaar <Bram@moolenaar.net>
6 Content-Type: text/plain; charset=ISO-8859-1
7 Content-Transfer-Encoding: 8bit
11 Problem: The spellfile plugin required typing login name and password.
12 Solution: Use "anonymous" and "vim7user" by default. No need to setup a
14 Files: runtime/autoload/spellfile.vim
17 *** ../vim-7.0.009/runtime/autoload/spellfile.vim Wed May 10 15:22:54 2006
18 --- runtime/autoload/spellfile.vim Wed May 10 17:55:15 2006
21 " Vim script to download a missing spell file
22 " Maintainer: Bram Moolenaar <Bram@vim.org>
23 ! " Last Change: 2006 Feb 01
25 if !exists('g:spellfile_URL')
26 ! let g:spellfile_URL = 'ftp://ftp.vim.org/pub/vim/unstable/runtime/spell'
28 let s:spellfile_URL = '' " Start with nothing so that s:donedict is reset.
31 " Vim script to download a missing spell file
32 " Maintainer: Bram Moolenaar <Bram@vim.org>
33 ! " Last Change: 2006 May 10
35 if !exists('g:spellfile_URL')
36 ! let g:spellfile_URL = 'ftp://ftp.vim.org/pub/vim/runtime/spell'
38 let s:spellfile_URL = '' " Start with nothing so that s:donedict is reset.
44 echo 'Downloading ' . fname . '...'
45 ! exe 'Nread ' g:spellfile_URL . '/' . fname
46 if getline(2) !~ 'VIMspell'
47 " Didn't work, perhaps there is an ASCII one.
49 let fname = a:lang . '.ascii.spl'
50 echo 'Could not find it, trying ' . fname . '...'
51 ! exe 'Nread ' g:spellfile_URL . '/' . fname
52 if getline(2) !~ 'VIMspell'
53 echo 'Sorry, downloading failed'
58 echo 'Downloading ' . fname . '...'
59 ! call spellfile#Nread(fname)
60 if getline(2) !~ 'VIMspell'
61 " Didn't work, perhaps there is an ASCII one.
63 let fname = a:lang . '.ascii.spl'
64 echo 'Could not find it, trying ' . fname . '...'
65 ! call spellfile#Nread(fname)
66 if getline(2) !~ 'VIMspell'
67 echo 'Sorry, downloading failed'
72 let fname = substitute(fname, '\.spl$', '.sug', '')
73 echo 'Downloading ' . fname . '...'
74 ! exe 'Nread ' g:spellfile_URL . '/' . fname
75 if getline(2) !~ 'VIMsug'
76 echo 'Sorry, downloading failed'
80 let fname = substitute(fname, '\.spl$', '.sug', '')
81 echo 'Downloading ' . fname . '...'
82 ! call spellfile#Nread(fname)
83 if getline(2) !~ 'VIMsug'
84 echo 'Sorry, downloading failed'
94 + " Read "fname" from the ftp server.
95 + function! spellfile#Nread(fname)
96 + let machine = substitute(g:spellfile_URL, 'ftp://\([^/]*\).*', '\1', '')
97 + let dir = substitute(g:spellfile_URL, 'ftp://[^/]*/\(.*\)', '\1', '')
98 + exe 'Nread "' . machine . ' anonymous vim7user ' . dir . '/' . a:fname . '"'
100 *** ../vim-7.0.009/src/version.c Wed May 10 17:51:22 2006
101 --- src/version.c Wed May 10 17:53:53 2006
105 { /* Add new patch number below this line */
112 ...for the mess to clean after a party because it means I have
113 been surrounded by friends.
115 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
116 /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
117 \\\ download, build and distribute -- http://www.A-A-P.org ///
118 \\\ help me help AIDS victims -- http://ICCF-Holland.org ///