Skip to content

Instantly share code, notes, and snippets.

@hanji
Created July 9, 2014 16:19
Show Gist options
  • Save hanji/832e05cd9680b4161458 to your computer and use it in GitHub Desktop.
Save hanji/832e05cd9680b4161458 to your computer and use it in GitHub Desktop.
get vim 7.4 patches
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import os,tempfile,urllib
for i in range(1,359):
with open(os.path.sep.join((tempfile.gettempdir(),'7.4.'+ str(i).zfill(3))), 'wb') as f:
f.write(urllib.urlopen('ftp://ftp.vim.org/pub/vim/patches/7.4/7.4.%s' % str(i).zfill(3)).read())
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment