]> git.pld-linux.org Git - packages/vim.git/blob - 7.0.010
- updated to 0.7.3
[packages/vim.git] / 7.0.010
1 To: vim-dev@vim.org
2 Subject: Patch 7.0.010
3 Fcc: outbox
4 From: Bram Moolenaar <Bram@moolenaar.net>
5 Mime-Version: 1.0
6 Content-Type: text/plain; charset=ISO-8859-1
7 Content-Transfer-Encoding: 8bit
8 ------------
9
10 Patch 7.0.010
11 Problem:    The spellfile plugin required typing login name and password.
12 Solution:   Use "anonymous" and "vim7user" by default.  No need to setup a
13             .netrc file.
14 Files:      runtime/autoload/spellfile.vim
15
16
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
19 ***************
20 *** 1,9 ****
21   " Vim script to download a missing spell file
22   " Maintainer: Bram Moolenaar <Bram@vim.org>
23 ! " Last Change:        2006 Feb 01
24   
25   if !exists('g:spellfile_URL')
26 !   let g:spellfile_URL = 'ftp://ftp.vim.org/pub/vim/unstable/runtime/spell'
27   endif
28   let s:spellfile_URL = ''    " Start with nothing so that s:donedict is reset.
29   
30 --- 1,9 ----
31   " Vim script to download a missing spell file
32   " Maintainer: Bram Moolenaar <Bram@vim.org>
33 ! " Last Change:        2006 May 10
34   
35   if !exists('g:spellfile_URL')
36 !   let g:spellfile_URL = 'ftp://ftp.vim.org/pub/vim/runtime/spell'
37   endif
38   let s:spellfile_URL = ''    " Start with nothing so that s:donedict is reset.
39   
40 ***************
41 *** 61,73 ****
42       new
43       setlocal bin
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.
48         g/^/d
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'
54         bwipe!
55 --- 61,73 ----
56       new
57       setlocal bin
58       echo 'Downloading ' . fname . '...'
59 !     call spellfile#Nread(fname)
60       if getline(2) !~ 'VIMspell'
61         " Didn't work, perhaps there is an ASCII one.
62         g/^/d
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'
68         bwipe!
69 ***************
70 *** 95,101 ****
71         g/^/d
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'
77         else
78 --- 95,101 ----
79         g/^/d
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'
85         else
86 ***************
87 *** 108,111 ****
88 --- 108,118 ----
89   
90       bwipe
91     endif
92 + endfunc
93
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 . '"'
99   endfunc
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
102 ***************
103 *** 668,669 ****
104 --- 668,671 ----
105   {   /* Add new patch number below this line */
106 + /**/
107 +     10,
108   /**/
109
110 -- 
111 I AM THANKFUL...
112 ...for the mess to clean after a party because it means I have
113 been surrounded by friends.
114
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    ///
This page took 0.047289 seconds and 3 git commands to generate.