2020-09-18 11:25:06 -04:00
|
|
|
" This appends all of the vim plugins to the end of Vim's runtimepath.
|
2022-02-16 02:57:40 -05:00
|
|
|
for directory in ["/run/current-system/profile", $HOME . "/.guix-profile", $HOME ."/.guix-home/profile", $GUIX_PROFILE, $GUIX_ENVIRONMENT]
|
2020-09-18 11:25:06 -04:00
|
|
|
let vimplugins = directory . "/share/vim/vimfiles"
|
|
|
|
if isdirectory(vimplugins)
|
|
|
|
let &rtp = join([&rtp,vimplugins], ',')
|
|
|
|
endif
|
|
|
|
endfor
|
2022-02-16 02:57:40 -05:00
|
|
|
" Unconditionally add */after directories last, as intended by upstream
|
|
|
|
" TODO: Remove duplicate */after directories
|
|
|
|
for directory in [$VIM . "/vimfiles", $HOME ."/.vim"]
|
|
|
|
let vimplugins = directory . "/after"
|
|
|
|
let &rtp = join([&rtp,vimplugins], ',')
|
|
|
|
endfor
|