Satisfy vint's opinions in the ~/.vimrc
This commit is contained in:
parent
264ee4b1fa
commit
3a55e1df41
1 changed files with 3 additions and 3 deletions
6
vimrc
6
vimrc
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue