2016-10-05 19:56:05 -04:00
|
|
|
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)'
|
|
|
|
endif
|
|
|
|
endfor
|
2016-10-02 06:13:50 -04:00
|
|
|
|
2016-10-05 19:56:05 -04:00
|
|
|
set runtimepath=$XDG_CONFIG_HOME/vim,$XDG_CACHE_HOME/vim,$VIM/vimfiles,$VIMRUNTIME,$VIM/vimfiles/after,$XDG_CONFIG_HOME/vim/after,$XDG_CACHE_HOME/vim/after
|
|
|
|
set viminfo+=n$XDG_CACHE_HOME/vim/viminfo
|
2016-10-06 09:02:00 -04:00
|
|
|
let g:netrw_home = $XDG_CACHE_HOME . '/netrw'
|
2016-10-02 06:13:50 -04:00
|
|
|
|
2016-10-05 19:56:05 -04:00
|
|
|
source $XDG_CONFIG_HOME/vim/vimrc
|
2016-10-06 09:16:02 -04:00
|
|
|
let $MYVIMRC = $XDG_CONFIG_HOME . '/vim/vimrc'
|