aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2020-05-16 01:15:56 +1200
committerTom Ryder <tom@sanctum.geek.nz>2020-05-16 01:15:56 +1200
commit8e55b0ef8f9d76565f115498ca1c226b2d676b68 (patch)
tree2ee830ef73b0b2b6d50a83e224f94288291c4c45
parentAdd an issue with syntax highlighting (diff)
downloaddotfiles-8e55b0ef8f9d76565f115498ca1c226b2d676b68.tar.gz
dotfiles-8e55b0ef8f9d76565f115498ca1c226b2d676b68.zip
Use $HOME not tildes for XDG basedir defaults
This is both closer to the spec, and also takes some of the pain out of expanding paths for use in options.
-rw-r--r--vim/autoload/xdg.vim6
1 files changed, 3 insertions, 3 deletions
diff --git a/vim/autoload/xdg.vim b/vim/autoload/xdg.vim
index 5cef0f98..9c6e018f 100644
--- a/vim/autoload/xdg.vim
+++ b/vim/autoload/xdg.vim
@@ -1,9 +1,9 @@
" <https://specifications.freedesktop.org/basedir-spec/basedir-spec-latest.html#variables>
let s:defaults = {
- \ 'XDG_CACHE_HOME': '~/.cache',
- \ 'XDG_CONFIG_HOME': '~/.config',
+ \ 'XDG_CACHE_HOME': $HOME.'/.cache',
+ \ 'XDG_CONFIG_HOME': $HOME.'/.config',
\ 'XDG_CONFIG_DIRS': '/etc/xdg',
- \ 'XDG_DATA_HOME': '~/.local/share',
+ \ 'XDG_DATA_HOME': $HOME.'/.local/share',
\ 'XDG_DATA_DIRS': '/usr/local/share:/usr/share',
\}