From a1ef7e57d9627f59000962111478d0846ab25d5c Mon Sep 17 00:00:00 2001 From: Imran Iqbal Date: Fri, 1 Nov 2019 07:47:15 +0000 Subject: [PATCH] fix(vimrc): ensure `vimrc` state runs --- users/files/vimrc/vimrc | 7 +++++++ users/vimrc.sls | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/users/files/vimrc/vimrc b/users/files/vimrc/vimrc index fef9e87..15427ae 100644 --- a/users/files/vimrc/vimrc +++ b/users/files/vimrc/vimrc @@ -1,3 +1,9 @@ +"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" +" File managed by Salt at <{{ source }}>. +" Your changes will be overwritten. +"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" +" +{% raw -%} " URL: http://vim.wikia.com/wiki/Example_vimrc " Authors: http://vim.wikia.com/wiki/Vim_on_Freenode " Description: A minimal, but feature rich, example .vimrc. If you are a @@ -158,3 +164,4 @@ nnoremap :nohl "------------------------------------------------------------ +{%- endraw %} diff --git a/users/vimrc.sls b/users/vimrc.sls index d8a378d..abb9274 100644 --- a/users/vimrc.sls +++ b/users/vimrc.sls @@ -1,6 +1,6 @@ {% from "users/map.jinja" import users with context %} -{% if users.use_vim_formula %} +{% if salt['pillar.get']('users-formula:use_vim_formula', False) %} include: - users