forked from alanstevens/KickAssVim
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathRakefile
120 lines (113 loc) · 5.8 KB
/
Rakefile
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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
module VIM
Dirs = %w[ autoload bundle ]
end
VIM::Dirs.each do |dir|
directory(dir)
end
def vim_plugin_task(name, repo=nil)
cwd = File.expand_path("../", __FILE__)
# Changed tmp to bundle.
dir = File.expand_path("bundle/#{name}")
subdirs = VIM::Dirs
namespace(name) do
if repo
task :install => subdirs do
if repo =~ /git$/
unless File.exist?(dir)
sh "git clone #{repo} #{dir}"
else
Dir.chdir dir do
sh "git pull"
end
end
end
yield if block_given?
end
else
task :install => subdirs do
yield if block_given?
end
end
end
desc "Install #{name} plugin"
task name do
puts
puts "*" * 40
puts "*#{"Installing #{name}".center(38)}*"
puts "*" * 40
puts
Rake::Task["#{name}:install"].invoke
end
task :default => name
end
vim_plugin_task "abolish", "git://github.com/tpope/vim-abolish.git"
vim_plugin_task "ack", "git://github.com/mileszs/ack.vim.git"
vim_plugin_task "align", "git://github.com/tsaleh/vim-align.git"
vim_plugin_task "autoclose", "git://github.com/Townk/vim-autoclose.git"
vim_plugin_task "bufexplorer", "git://github.com/vim-scripts/bufexplorer.zip.git"
vim_plugin_task "bufonly", "git://github.com/duff/vim-bufonly.git"
vim_plugin_task "camelcasemotion", "git://github.com/vim-scripts/camelcasemotion.git"
vim_plugin_task "command-t", "git://github.com/wincent/Command-T.git" do
system "cd bundle/command-t/ruby/command-t && ruby extconf.rb && make"
end
vim_plugin_task "conque", "git://github.com/rson/vim-conque.git"
vim_plugin_task "cucumber", "git://github.com/tpope/vim-cucumber.git"
vim_plugin_task "dbext", "git://github.com/vim-scripts/dbext.vim.git"
vim_plugin_task "endwise", "git://github.com/tpope/vim-endwise.git"
vim_plugin_task "fugitive", "git://github.com/tpope/vim-fugitive.git"
vim_plugin_task "gist", "git://github.com/mattn/gist-vim.git"
vim_plugin_task "git", "git://github.com/tpope/vim-git.git"
vim_plugin_task "haml", "git://github.com/tpope/vim-haml.git"
vim_plugin_task "indexedsearch", "git://github.com/henrik/vim-indexed-search.git"
vim_plugin_task "javascript", "git://github.com/pangloss/vim-javascript.git"
vim_plugin_task "jslint", "git://github.com/hallettj/jslint.vim.git"
vim_plugin_task "less" do
unless File.exists? "bundle/less/syntax/less.vim"
sh "git clone git://gist.github.com/161047.git bundle/less/syntax"
else
Dir.chdir 'bundle/less/syntax' do
sh "git pull"
end
end
end
vim_plugin_task "markdown", "git://github.com/tpope/vim-markdown.git"
vim_plugin_task "nerdcommenter", "git://github.com/ddollar/nerdcommenter.git"
vim_plugin_task "nerdtree", "git://github.com/alanstevens/nerdtree.git"
vim_plugin_task "pathogen" do
sh "curl https://github.com/tpope/vim-pathogen/raw/master/autoload/pathogen.vim > autoload/pathogen.vim"
end
vim_plugin_task "pik", "git://github.com/zaki/pik_vim.git"
vim_plugin_task "preview", "git://github.com/greyblake/vim-preview.git" # Changed markdown preview to preview
vim_plugin_task "ragtag", "git://github.com/tpope/vim-ragtag.git"
vim_plugin_task "rails", "git://github.com/tpope/vim-rails.git"
vim_plugin_task "repeat", "git://github.com/tpope/vim-repeat.git"
vim_plugin_task "rspec", "git://github.com/taq/vim-rspec.git"
vim_plugin_task "rvm", "git://github.com/csexton/rvm.vim.git"
vim_plugin_task "scss", "git://github.com/cakebaker/scss-syntax.vim.git"
vim_plugin_task "searchfold", "git://github.com/vim-scripts/searchfold.vim.git"
vim_plugin_task "simplefold", "git://github.com/vim-scripts/simplefold.git"
vim_plugin_task "sinatra", "git://github.com/hallison/vim-ruby-sinatra.git"
vim_plugin_task "snipmate", "git://github.com/msanders/snipmate.vim.git"
vim_plugin_task "snippets", "git://github.com/akitaonrails/snipmate-snippets.git"
vim_plugin_task "solarized", "git://github.com/altercation/vim-colors-solarized.git"
vim_plugin_task "supertab", "git://github.com/ervandew/supertab.git"
vim_plugin_task "surround", "git://github.com/tpope/vim-surround.git"
vim_plugin_task "syntastic", "git://github.com/scrooloose/syntastic.git"
vim_plugin_task "taglist", "git://github.com/vim-scripts/taglist.vim.git"
vim_plugin_task "tailminusf", "git://github.com/vim-scripts/TailMinusF.git"
vim_plugin_task "textile", "git://github.com/timcharper/textile.vim.git"
vim_plugin_task "textobj", "git://github.com/kana/vim-textobj-user.git"
vim_plugin_task "textobj-comment", "git://github.com/thinca/vim-textobj-comment.git"
vim_plugin_task "textobj-rubyblock", "git://github.com/nelstrom/vim-textobj-rubyblock.git"
vim_plugin_task "vimoutliner", "git://github.com/Raimondi/vimoutliner.git"
vim_plugin_task "vim-rake", "git://github.com/tpope/vim-rake.git"
vim_plugin_task "yankring", "git://github.com/chrismetcalf/vim-yankring.git"
vim_plugin_task "zencoding", "git://github.com/mattn/zencoding-vim.git"
vim_plugin_task "zoomfont", "git://github.com/alanstevens/zoomfont.git"
vim_plugin_task "zoomwin", "git://github.com/vim-scripts/ZoomWin.git"
desc "Update the documentation"
task :update_docs do
#puts "Updating VIM Documentation..."
#system "vim -e -s call pathogen#helptags()"
end
task :default => [ :update_docs ]