GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — dotFiles/vim_plugin_install.py at master · Abadbeginning/dotFiles Expand file tree/ Copy pathvim_plugin_install.pyMore file actions 63 lines (45 loc) · 1.65 KB / Copy pathvim_plugin_install.pyFile metadata and controls63 lines (45 loc) · 1.65 KB 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 # This would try to install the vim plugins saved in the 'vim_plugin_on_github'file f = open("vim_plugin_on_github") import sys, subprocess, os, os.path as path from subprocess import call # Check folder existance homeFolder = os.environ['HOME'] vimFolder = "%s/.vim" % homeFolder bundleFolder = "%s/bundle" % vimFolder autoloadFolder = "%s/autoload" % vimFolder pathogenAutoloadFilePath = "%s/pathogen.vim" % autoloadFolder def makeSureDirectoryExists(dir_fullpath): if not path.exists(dir_fullpath): os.makedirs(dir_fullpath) makeSureDirectoryExists(bundleFolder) makeSureDirectoryExists(autoloadFolder) # pathogen file pathogenFile = "%s/pathogen.vim" % autoloadFolder if not path.isfile(pathogenFile): call(['wget','-O',pathogenFile,"https://tpo.pe/pathogen.vim"]) # Install Color Scheme plugin colorFolder = "%s/colors" % vimFolder makeSureDirectoryExists(colorFolder) colorFIle = "%s/wombat256mod.vim" % colorFolder if not path.isfile(colorFIle): call(['wget','-O',colorFIle, "http://www.vim.org/scripts/download_script.php?src_id=13400" ]) if not path.isfile(pathogenAutoloadFilePath): call(['curl','-Sso',pathogenAutoloadFilePath, "https://raw.github.com/tpope/vim-pathogen/master/autoload/pathogen.vim" ]) for l in f: l = l.strip() if not (l.startswith('http') or l.startswith('git')): continue basename = path.basename(l) folderName = (path.splitext(basename))[0] gitCheckoutFolder = "%s/%s" % (bundleFolder,folderName) if path.exists(gitCheckoutFolder): continue if call(["git","clone",l,gitCheckoutFolder]): print("Error Occured. Message see above") else: print(basename,"installed.") print("Done :)") |
| You are visitor 01402792 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |