diff options
author | Ben Burwell <ben@benburwell.com> | 2019-08-13 23:25:19 -0400 |
---|---|---|
committer | Ben Burwell <ben@benburwell.com> | 2019-08-13 23:25:19 -0400 |
commit | 7d4c541a0d4f09eb421425f8d49b65308d9e6cfd (patch) | |
tree | b6a537d00a830691ed9db8188083cb2849489719 | |
parent | 4cd20c94b9f07b3fad8944c998a71eba0fce928a (diff) |
vim: use conf environment vars instead of paths
-rw-r--r-- | templates/.vimrc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/templates/.vimrc b/templates/.vimrc index cd371a2..2cd28ab 100644 --- a/templates/.vimrc +++ b/templates/.vimrc @@ -112,10 +112,10 @@ au FileType crontab setlocal nowritebackup au FileType mail setlocal spell au FileType bindzone setlocal noexpandtab ts=8 sts=8 sw=8 -au BufWritePost ~/dotfiles/templates/* call ConfApply(expand('%:p')) +au BufWritePost $CONF_SOURCE/templates/* call ConfApply(expand('%:p')) function! ConfApply(name) - let l:rel = substitute(a:name, "^".expand("~/dotfiles/templates/"), "", "") + let l:rel = substitute(a:name, "^".expand($CONF_SOURCE."/templates/"), "", "") silent execute "!conf apply " . l:rel endfunction |