Skip to content

Instantly share code, notes, and snippets.

@erochest
Created August 23, 2011 18:05
Show Gist options
  • Save erochest/1166018 to your computer and use it in GitHub Desktop.
Save erochest/1166018 to your computer and use it in GitHub Desktop.
A .janus.rake file to pull in a rspec2 compiler from tooky/vim-ruby and suppress Windows errors.
require 'rbconfig'
require 'fileutils'
RSPEC2 = 'https://github.com/tooky/vim-ruby/blob/6f7656892806a2a95fb98a562f6531e27e7398c4/compiler/rspec2.vim'
directory 'compiler'
vim_plugin_task 'rspec2' do
if !File.directory?('compiler')
Dir.mkdir('compiler')
end
sh "curl -o compiler/rspec2.vim #{RSPEC2}"
end
if ! (Config::CONFIG['host_os'] =~ /mswin|mingw/).nil?
skip_vim_plugin 'command_t'
module FileUtils
def ln_s(src, dest, options={})
FileUtils.cp(src, dest)
end
end
end
#!/bin/sh
cd
git clone https://github.com/carlhuda/janus.git .vim
curl -L https://gist.github.com/raw/1166018/.janus.rake > ~/.janus.rake
cd .vim
rake
cd
git clone https://github.com/carlhuda/janus.git vimfiles
curl -L https://gist.github.com/raw/1166018/.janus.rake > .janus.rake
cd vimfiles
rake
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment