sponsor Vim development Vim logo Vim Book Ad

dl.vim : converts file links to GetRight GRX files

 script karma  Rating 0/0, Downloaded by 570  Comments, bugs, improvements  Vim wiki

created by
Alex Jakushev
 
script type
utility
 
description
Use this script when you have a www page with the list of downloadable
links and want to download all/some of them using GetRight.

The script assumes that you have a file, each line of which containing a link(s)
to file you want to download. Such file may be produced, for examle, if You open
some html file and issue a command :

:gl /href=".*zip"/ . write! >> files.grx
:e files.grx

When loaded, the script loads and maps following functions :
1. UnHref() - which removes everything except URLs themselves, and puts every URL on a single line
2. Ability to set the destination directory
3. MakeList() - Function that converts pure URLs to GetRight acceptable information - before invoking it,
each line should contain pure single URL.
 
install details
Load the script using :so command, then use mapped functions. If you forgot the mappings,
reload the script again, it shows brief description on loading.
 

rate this script Life Changing Helpful Unfulfilling 
script versions (upload new version)

Click on the package to download.

package script version date Vim version user release notes
dl.vim 1.0 2001-06-12 5.7 Alex Jakushev Initial upload
ip used for rating: 3.143.244.83

If you have questions or remarks about this site, visit the vimonline development pages. Please use this site responsibly.
Questions about Vim should go to the maillist. Help Bram help Uganda.
   
Vim at Github