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

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'}) for [s:var, s:value] in items({'XDG_CONFIG_HOME': '~/.config', 'XDG_CACHE_HOME': '~/.cache', 'XDG_DATA_HOME': '~/.local/share'})
if (empty(eval('$' . var))) if (empty(eval('$' . s:var)))
exec 'let $' . var . ' = expand(value)' exec 'let $' . s:var . ' = expand(s:value)'
endif endif
endfor endfor