package 'vim'
homebrew_cask 'macvim'

vimfiles = ::File.join(node['sprout']['home'], node['workspace_directory'], 'vimfiles')
git vimfiles do
  repository 'http://github.com/luan/vimfiles.git'
  revision 'master'
  user node['sprout']['user']
  enable_submodules true
  action :checkout
end

dotvim = ::File.join(node['sprout']['home'], '.vim')

link dotvim do
  to vimfiles
  owner node['sprout']['user']
end

execute './install --non-interactive' do
  cwd dotvim
  user node['sprout']['user']
end

package 'vim'
homebrew_cask 'macvim'

vimfiles = ::File.join(node['sprout']['home'], node['workspace_directory'], 'vimfiles')
git vimfiles do
  repository 'http://github.com/luan/vimfiles.git'
  revision 'master'
  user node['sprout']['user']
  enable_submodules true
  action :checkout
end

dotvim = ::File.join(node['sprout']['home'], '.vim')

link dotvim do
  to vimfiles
  owner node['sprout']['user']
end

execute './update --non-interactive' do
  cwd dotvim
  user node['sprout']['user']
end

Update vim plugins when installing luan's vim
Update vim plugins when installing luan's vim

* luan claims this won't break initial installations, so we will trust him

Signed-off-by: Dan Wendorf <aacfaec681ee5d2ca2a22f1deac31c830d964d35@pivotal.io>
