mirror of
https://github.com/preservim/nerdcommenter.git
synced 2025-11-08 09:53:47 -05:00
Compare commits
85 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
902faedee2 | ||
|
|
4447e9e6e8 | ||
|
|
24c68a6852 | ||
|
|
ecf20b005c | ||
|
|
930be32a23 | ||
|
|
d54bcbfc98 | ||
|
|
33e3ace742 | ||
|
|
c0d7109c6b | ||
|
|
5c9359d3cf | ||
|
|
02c726c6d1 | ||
|
|
d868eae71b | ||
|
|
e0191f2ce9 | ||
|
|
cea72da179 | ||
|
|
9c8343c939 | ||
|
|
a1b4c3b94a | ||
|
|
4d933f01d6 | ||
|
|
bca88e735b | ||
|
|
5d42b2ec5c | ||
|
|
ae430a62fc | ||
|
|
e32c0b9675 | ||
|
|
58480d3d64 | ||
|
|
7239f85de1 | ||
|
|
8b712bee60 | ||
|
|
8176930f17 | ||
|
|
88d6cc97a9 | ||
|
|
7052ba60f4 | ||
|
|
b32d2cfad2 | ||
|
|
437af04863 | ||
|
|
eeb369e6be | ||
|
|
b3d4476096 | ||
|
|
23aa888990 | ||
|
|
0bd4d5bbca | ||
|
|
11114745bd | ||
|
|
81307ff269 | ||
|
|
f63b4f0987 | ||
|
|
4b680f34e9 | ||
|
|
19147a70cc | ||
|
|
caefbe56fd | ||
|
|
53d437a3c8 | ||
|
|
a287b40a67 | ||
|
|
95c368779b | ||
|
|
10c120478c | ||
|
|
b7d141a3e6 | ||
|
|
df299e7e22 | ||
|
|
40632f247f | ||
|
|
ee14557c87 | ||
|
|
8098fea8d9 | ||
|
|
7e3f47ed8d | ||
|
|
06683e3311 | ||
|
|
dda8510e0c | ||
|
|
a0003bc926 | ||
|
|
ca94c70dba | ||
|
|
44b4c26b86 | ||
|
|
5d8bb28113 | ||
|
|
f65d86fea3 | ||
|
|
1d92203107 | ||
|
|
fe73c80dc8 | ||
|
|
cc9f986514 | ||
|
|
03d9562db8 | ||
|
|
1301323179 | ||
|
|
842055ae43 | ||
|
|
68bf65fcd2 | ||
|
|
aaf2471da7 | ||
|
|
e14bdb0735 | ||
|
|
8dda3f17e0 | ||
|
|
ddd235757b | ||
|
|
d6ca231ac9 | ||
|
|
fe71371c15 | ||
|
|
226063bfc1 | ||
|
|
d6282ef7a3 | ||
|
|
c2a3f093ae | ||
|
|
b8c5a4443c | ||
|
|
6bf14ce062 | ||
|
|
e6a36fb8aa | ||
|
|
5bf567d75e | ||
|
|
1ae6bd4870 | ||
|
|
6835cfe090 | ||
|
|
b54d3bbc92 | ||
|
|
27e8727a35 | ||
|
|
e164c00246 | ||
|
|
134acc595e | ||
|
|
d3718d9d21 | ||
|
|
53558869a9 | ||
|
|
0370366572 | ||
|
|
a4453c01ee |
1
.gitignore
vendored
1
.gitignore
vendored
@@ -1,2 +1,3 @@
|
||||
*~
|
||||
*.swp
|
||||
tags
|
||||
|
||||
80
Rakefile
80
Rakefile
@@ -1,18 +1,76 @@
|
||||
desc "Copy the vim/doc files into ~/.vim"
|
||||
task :deploy_local do
|
||||
run "cp plugin/NERD_commenter.vim ~/.vim/plugin"
|
||||
run "cp doc/NERD_commenter.txt ~/.vim/doc"
|
||||
end
|
||||
# written by travis jeffery <travisjeffery@gmail.com>
|
||||
# contributions by scrooloose <github:scrooloose>
|
||||
|
||||
require 'rake'
|
||||
require 'find'
|
||||
require 'pathname'
|
||||
|
||||
desc "Create a zip archive for release to vim.org"
|
||||
IGNORE = [/\.gitignore$/, /Rakefile$/]
|
||||
|
||||
files = `git ls-files`.split("\n")
|
||||
files.reject! { |f| IGNORE.any? { |re| f.match(re) } }
|
||||
|
||||
desc 'Zip up the project files'
|
||||
task :zip do
|
||||
abort "NERD_commenter.zip already exists, aborting" if File.exist?("NERD_commenter.zip")
|
||||
run "zip NERD_commenter.zip plugin/NERD_commenter.vim doc/NERD_commenter.txt"
|
||||
zip_name = File.basename(File.dirname(__FILE__))
|
||||
zip_name.gsub!(/ /, '_')
|
||||
zip_name = "#{zip_name}.zip"
|
||||
|
||||
if File.exist?(zip_name)
|
||||
abort("Zip file #{zip_name} already exists. Remove it first.")
|
||||
end
|
||||
|
||||
puts "Creating zip file: #{zip_name}"
|
||||
system("zip #{zip_name} #{files.join(" ")}")
|
||||
end
|
||||
|
||||
def run(cmd)
|
||||
puts "Executing: #{cmd}"
|
||||
system cmd
|
||||
desc 'Install plugin and documentation'
|
||||
task :install do
|
||||
vimfiles = if ENV['VIMFILES']
|
||||
ENV['VIMFILES']
|
||||
elsif RUBY_PLATFORM =~ /(win|w)32$/
|
||||
File.expand_path("~/vimfiles")
|
||||
else
|
||||
File.expand_path("~/.vim")
|
||||
end
|
||||
files.each do |file|
|
||||
target_file = File.join(vimfiles, file)
|
||||
FileUtils.mkdir_p File.dirname(target_file)
|
||||
FileUtils.cp file, target_file
|
||||
|
||||
puts "Installed #{file} to #{target_file}"
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
desc 'Pulls from origin'
|
||||
task :pull do
|
||||
puts "Updating local repo..."
|
||||
system("cd " << Dir.new(File.dirname(__FILE__)).path << " && git pull")
|
||||
end
|
||||
|
||||
desc 'Calls pull task and then install task'
|
||||
task :update => ['pull', 'install'] do
|
||||
puts "Update of vim script complete."
|
||||
end
|
||||
|
||||
desc 'Uninstall plugin and documentation'
|
||||
task :uninstall do
|
||||
vimfiles = if ENV['VIMFILES']
|
||||
ENV['VIMFILES']
|
||||
elsif RUBY_PLATFORM =~ /(win|w)32$/
|
||||
File.expand_path("~/vimfiles")
|
||||
else
|
||||
File.expand_path("~/.vim")
|
||||
end
|
||||
files.each do |file|
|
||||
target_file = File.join(vimfiles, file)
|
||||
FileUtils.rm target_file
|
||||
|
||||
puts "Uninstalled #{target_file}"
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
task :default => ['update']
|
||||
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user