runtime: update g:spellfile_URL to URL used in Vim 8

See vim/vim@7ff7846
This commit is contained in:
Alexander Heinrich 2020-09-17 13:31:55 +02:00
parent f34eeba2d8
commit 53efdedca9
2 changed files with 9 additions and 12 deletions

View File

@ -1,13 +1,9 @@
" Vim script to download a missing spell file " Vim script to download a missing spell file
if !exists('g:spellfile_URL') if !exists('g:spellfile_URL')
" Prefer using http:// when netrw should be able to use it, since " Always use https:// because it's secure. The certificate is for nluug.nl,
" more firewalls let this through. " thus we can't use the alias ftp.vim.org here.
if executable("curl") || executable("wget") || executable("fetch") let g:spellfile_URL = 'https://ftp.nluug.nl/pub/vim/runtime/spell'
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 endif
let s:spellfile_URL = '' " Start with nothing so that s:donedict is reset. let s:spellfile_URL = '' " Start with nothing so that s:donedict is reset.

View File

@ -617,11 +617,12 @@ ask you where to write the file (there must be a writable directory in
'runtimepath' for this). 'runtimepath' for this).
The plugin has a default place where to look for spell files, on the Vim ftp The plugin has a default place where to look for spell files, on the Vim ftp
server. If you want to use another location or another protocol, set the server. The protocol used is SSL (https://) for security. If you want to use
g:spellfile_URL variable to the directory that holds the spell files. The another location or another protocol, set the g:spellfile_URL variable to the
|netrw| plugin is used for getting the file, look there for the specific directory that holds the spell files. You can use http:// or ftp://, but you
syntax of the URL. Example: > are taking a security risk then. The |netrw| plugin is used for getting the
let g:spellfile_URL = 'http://ftp.vim.org/vim/runtime/spell' file, look there for the specific syntax of the URL. Example: >
let g:spellfile_URL = 'https://ftp.nluug.nl/vim/runtime/spell'
You may need to escape special characters. You may need to escape special characters.
The plugin will only ask about downloading a language once. If you want to The plugin will only ask about downloading a language once. If you want to