From: Maximilian Friedersdorff Date: Tue, 6 Aug 2019 07:33:22 +0000 (+0100) Subject: Ensure vim backup directory exists X-Git-Url: https://git.friedersdorff.com/?a=commitdiff_plain;h=8d08d220dabe65f6dd5ee690672655ba9c134494;p=max%2Fsaltfiles.git Ensure vim backup directory exists --- diff --git a/states/vim/init.sls b/states/vim/init.sls index 7f1ffa5..004cadf 100644 --- a/states/vim/init.sls +++ b/states/vim/init.sls @@ -29,3 +29,11 @@ plugins install: plugins update: cmd.run: - name: vim +PluginUpdate +qall + +packup dir: + file.directory: + - name: {{ grains['homedir'] }}/.vim/backup + - user: {{ grains['user'] }} + - group: {{ grains['user'] }} + - mode: 750 + - makedirs: True