dotfiles/modules/config/manifests/vim.pp

24 lines
539 B
Puppet

class config::vim {
file { 'vimrc':
ensure => file,
mode => '0644',
owner => 'jake',
group => 'users',
path => '/home/jake/.vimrc',
source => 'puppet:///modules/config/vimrc'
}
-> vcsrepo { 'Vim runtime':
ensure => latest,
provider => git,
user => 'jake',
path => '/home/jake/.vim_runtime',
source => 'https://github.com/amix/vimrc.git',
}
-> exec { 'Install vim plugins':
command => 'vim +PluginInstall +qall',
user => 'jake',
environment => 'HOME=/home/jake'
}
}