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

  1. HOME = ENV['HOME']
  2. PATH = ".vim/bundle/xptemplate/personal"
  3. DEST = "#{HOME}/#{PATH}"
  4. SRC = "ftplugin"
  5. directory DEST
  6. task :default => :install
  7. desc "Hardlink snippets into the ~/#{PATH} directory"
  8. task :install => DEST do
  9. run "cp -avl #{SRC} #{DEST}/"
  10. end
  11. desc "Remove obsolete from and copy new snippets to ~/#{PATH}"
  12. task :sync => :install do
  13. run "rsync -ri --delete #{SRC} #{DEST}/"
  14. end
  15. def run(cmd)
  16. puts cmd
  17. system cmd
  18. end