Author: bdubbs Date: 2006-07-30 23:01:30 -0600 (Sun, 30 Jul 2006) New Revision: 1612
Added: trunk/vim/vim-7.0-spellfile-1.patch Log: Add vim patch to allow downloading spellfiles via HTTP Added: trunk/vim/vim-7.0-spellfile-1.patch =================================================================== --- trunk/vim/vim-7.0-spellfile-1.patch (rev 0) +++ trunk/vim/vim-7.0-spellfile-1.patch 2006-07-31 05:01:30 UTC (rev 1612) @@ -0,0 +1,29 @@ +Submitted By: Alexander E. Patrakov +Date: 2006-07-25 +Initial Package Version: 7.0 +Origin: Alexander E. Patrakov +Upstream Status: Sent +Description: Allows downloading spellfiles via HTTP, +thus reverting the negative effect of ftp://ftp.vim.org/pub/vim/patches/7.0/7.0.010 + +--- vim70/runtime/autoload/spellfile.vim.orig 2006-07-25 19:05:38.000000000 +0600 ++++ vim70/runtime/autoload/spellfile.vim 2006-07-25 19:39:32.000000000 +0600 +@@ -110,9 +110,14 @@ + endif + endfunc + +-" Read "fname" from the ftp server. ++" Read "fname" from the server. + function! spellfile#Nread(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 . '"' ++ if strpart(g:spellfile_URL, 0, 6) == 'ftp://' ++ " Avoid the password prompt by providing the default username and password ++ 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 -- http://linuxfromscratch.org/mailman/listinfo/patches FAQ: http://www.linuxfromscratch.org/faq/ Unsubscribe: See the above information page
