Cleanup vims XDG config

Add exact commit to reference link.
Merge deleting and then readding different paths to options onto a
single line.
This commit is contained in:
2020-09-13 17:56:13 +02:00
parent 1442cf9fca
commit 923c0c0648

View File

@@ -7,7 +7,7 @@
" - http://standards.freedesktop.org/basedir-spec/basedir-spec-latest.html#variables
" - http://tlvince.com/vim-respect-xdg
" - https://wiki.archlinux.org/index.php/XDG_Base_Directory
" - https://raw.githubusercontent.com/kaleb/vim-files/master/xdg.vim
" - https://github.com/kaleb/vim-files/blob/23ee9d4a97d21f040c63e5c6dfdb72382fada840/xdg.vim
if empty($XDG_CACHE_HOME)
let $XDG_CACHE_HOME = '~/.cache'
@@ -38,10 +38,8 @@ if (!has('nvim'))
set viminfo+=n$XDG_DATA_HOME/vim/viminfo
endif
set runtimepath-=~/.vim
set runtimepath^=$XDG_CONFIG_HOME/vim
set runtimepath-=~/.vim/after
set runtimepath+=$XDG_CONFIG_HOME/vim/after
set packpath-=~/.vim
set packpath^=$XDG_CONFIG_HOME/vim
set runtimepath-=~/.vim runtimepath^=$XDG_CONFIG_HOME/vim
set runtimepath-=~/.vim/after runtimepath+=$XDG_CONFIG_HOME/vim/after
set packpath-=~/.vim packpath^=$XDG_CONFIG_HOME/vim
source $XDG_CONFIG_HOME/vim/vimrc