Install custom vimrc for root user too

This commit is contained in:
Jake Howard 2017-12-25 22:25:17 +00:00
parent b43485439b
commit 959fe9b6a5
Signed by: jake
GPG key ID: 57AFB45680EDD477
2 changed files with 16 additions and 7 deletions

View file

@ -1,9 +1,9 @@
set runtimepath+=~/.vim_runtime set runtimepath+=/usr/share/amix_vimrc
source ~/.vim_runtime/vimrcs/basic.vim source /usr/share/amix_vimrc/vimrcs/basic.vim
source ~/.vim_runtime/vimrcs/filetypes.vim source /usr/share/amix_vimrc/vimrcs/filetypes.vim
source ~/.vim_runtime/vimrcs/plugins_config.vim source /usr/share/amix_vimrc/vimrcs/plugins_config.vim
source ~/.vim_runtime/vimrcs/extended.vim source /usr/share/amix_vimrc/vimrcs/extended.vim
cmap w!! w !sudo tee >/dev/null % cmap w!! w !sudo tee >/dev/null %
:set mouse=a :set mouse=a

View file

@ -8,11 +8,20 @@ class config::vim {
source => 'puppet:///modules/config/vimrc' source => 'puppet:///modules/config/vimrc'
} }
-> file { 'vimrc for root':
ensure => file,
mode => '0644',
owner => 'root',
group => 'users',
path => '/root/.vimrc',
source => 'puppet:///modules/config/vimrc'
}
-> vcsrepo { 'Vim runtime': -> vcsrepo { 'Vim runtime':
ensure => latest, ensure => latest,
provider => git, provider => git,
user => 'jake', user => 'root',
path => '/home/jake/.vim_runtime', path => '/usr/share/amix_vimrc',
source => 'https://github.com/amix/vimrc.git', source => 'https://github.com/amix/vimrc.git',
} }
} }