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.

22 lines
417 B

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