Completion/templating snippets for XPTemplate vim plugin
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
This repo is archived. You can view files and clone it, but cannot push or open issues/pull-requests.
 
 

23 lines
440 B

HOME = ENV['HOME']
PATH = ".vim/bundle/xptemplate/personal"
DEST = "#{HOME}/#{PATH}"
SRC = "ftplugin"
directory DEST
task :default => :install
desc "Hardlink snippets into the ~/#{PATH} directory"
task :install => DEST do
run "cp -avl #{SRC} #{DEST}/"
end
desc "Remove obsolete from and copy new snippets to ~/#{PATH}"
task :sync => :install do
run "rsync -ri --delete #{SRC} #{DEST}/"
end
def run(cmd)
puts cmd
system cmd
end