Satisfy vint's opinions in the ~/.vimrc

This commit is contained in:
Danielle McLean 2016-10-17 20:22:02 +11:00
parent 264ee4b1fa
commit 3a55e1df41
No known key found for this signature in database
GPG Key ID: CC91589719027E94
1 changed files with 3 additions and 3 deletions

6
vimrc
View File

@ -1,6 +1,6 @@
for [var, value] in items({'XDG_CONFIG_HOME': '~/.config', 'XDG_CACHE_HOME': '~/.cache', 'XDG_DATA_HOME': '~/.local/share'})
if (empty(eval('$' . var)))
exec 'let $' . var . ' = expand(value)'
for [s:var, s:value] in items({'XDG_CONFIG_HOME': '~/.config', 'XDG_CACHE_HOME': '~/.cache', 'XDG_DATA_HOME': '~/.local/share'})
if (empty(eval('$' . s:var)))
exec 'let $' . s:var . ' = expand(s:value)'
endif
endfor