forked from aniani/vim
updated for version 7.0-076
This commit is contained in:
parent
9af1ba96e5
commit
9526a543cc
@ -1,6 +1,6 @@
|
|||||||
" Vim script to download a missing spell file
|
" Vim script to download a missing spell file
|
||||||
" Maintainer: Bram Moolenaar <Bram@vim.org>
|
" Maintainer: Bram Moolenaar <Bram@vim.org>
|
||||||
" Last Change: 2006 May 10
|
" Last Change: 2006 Aug 29
|
||||||
|
|
||||||
if !exists('g:spellfile_URL')
|
if !exists('g:spellfile_URL')
|
||||||
let g:spellfile_URL = 'ftp://ftp.vim.org/pub/vim/runtime/spell'
|
let g:spellfile_URL = 'ftp://ftp.vim.org/pub/vim/runtime/spell'
|
||||||
@ -110,9 +110,14 @@ function! spellfile#LoadFile(lang)
|
|||||||
endif
|
endif
|
||||||
endfunc
|
endfunc
|
||||||
|
|
||||||
" Read "fname" from the ftp server.
|
" Read "fname" from the server.
|
||||||
function! spellfile#Nread(fname)
|
function! spellfile#Nread(fname)
|
||||||
let machine = substitute(g:spellfile_URL, 'ftp://\([^/]*\).*', '\1', '')
|
if g:spellfile_URL =~ '^ftp://'
|
||||||
let dir = substitute(g:spellfile_URL, 'ftp://[^/]*/\(.*\)', '\1', '')
|
" for an ftp server use a default login and password to avoid a prompt
|
||||||
exe 'Nread "' . machine . ' anonymous vim7user ' . dir . '/' . a:fname . '"'
|
let machine = substitute(g:spellfile_URL, 'ftp://\([^/]*\).*', '\1', '')
|
||||||
|
let dir = substitute(g:spellfile_URL, 'ftp://[^/]*/\(.*\)', '\1', '')
|
||||||
|
exe 'Nread "' . machine . ' anonymous vim7user ' . dir . '/' . a:fname . '"'
|
||||||
|
else
|
||||||
|
exe 'Nread ' g:spellfile_URL . '/' . a:fname
|
||||||
|
endif
|
||||||
endfunc
|
endfunc
|
||||||
|
@ -666,6 +666,8 @@ static char *(features[]) =
|
|||||||
|
|
||||||
static int included_patches[] =
|
static int included_patches[] =
|
||||||
{ /* Add new patch number below this line */
|
{ /* Add new patch number below this line */
|
||||||
|
/**/
|
||||||
|
76,
|
||||||
/**/
|
/**/
|
||||||
75,
|
75,
|
||||||
/**/
|
/**/
|
||||||
|
Loading…
x
Reference in New Issue
Block a user