3 def prepare vm
, tmp_root
4 `mkdir -p #{tmp_root}/vim`
5 ["~/.vimrc", "~/.vim"].each
do |file
|
6 `cp -r #{file} #{tmp_root}/vim`
8 vm
.synced_folder("#{tmp_root}/vim", "#{tmp_root}/vim", :id => "vim")
11 def provision channel
, user_home
, tmp_root
12 puts
"Copying your vim configuratios"
13 channel
.execute("rm -rf #{user_home}/.vim*")
14 channel
.execute("cp -r #{tmp_root}/vim/.??* ~/")