2021-09-21 20:35:51 -04:00
|
|
|
for [s:var, s:value] in items({'XDG_CONFIG_HOME': '~/.config', 'XDG_CACHE_HOME': '~/.cache', 'XDG_DATA_HOME': '~/.local/share', 'XDG_STATE_HOME': '~/.local/state'})
|
2016-10-17 05:22:02 -04:00
|
|
|
if (empty(eval('$' . s:var)))
|
|
|
|
exec 'let $' . s:var . ' = expand(s:value)'
|
2016-10-05 19:56:05 -04:00
|
|
|
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
|
2021-09-21 20:35:51 -04:00
|
|
|
set viminfo+=n$XDG_STATE_HOME/vim/viminfo
|
2018-01-11 20:00:06 -05:00
|
|
|
if exists('+packpath')
|
|
|
|
set packpath^=$XDG_CONFIG_HOME/vim,$XDG_CACHE_HOME/vim
|
|
|
|
endif
|
2016-10-23 00:20:39 -04:00
|
|
|
let g:netrw_home = $XDG_CACHE_HOME . '/vim/netrw'
|
2016-10-02 06:13:50 -04:00
|
|
|
|
2018-01-24 00:58:39 -05:00
|
|
|
let $MYVIMRC = $XDG_CONFIG_HOME . '/vim/init.vim'
|
2017-09-10 19:32:17 -04:00
|
|
|
source $MYVIMRC
|