mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-12-30 08:02:38 -05:00
e358706058
* gnu/packages/aux-files/guix.vim: Autodetect plugins installed with guix-home. Add */after directories at the end of the runtimepath.
13 lines
625 B
VimL
13 lines
625 B
VimL
" This appends all of the vim plugins to the end of Vim's runtimepath.
|
|
for directory in ["/run/current-system/profile", $HOME . "/.guix-profile", $HOME ."/.guix-home/profile", $GUIX_PROFILE, $GUIX_ENVIRONMENT]
|
|
let vimplugins = directory . "/share/vim/vimfiles"
|
|
if isdirectory(vimplugins)
|
|
let &rtp = join([&rtp,vimplugins], ',')
|
|
endif
|
|
endfor
|
|
" 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
|