| 1 | " This appends all applicable vim paths to the end of packagepath. Once we |
| 2 | " have told vim the packagepath vim will add it to the runtimepath for us. |
| 3 | for directory in ["/run/current-system/profile", $HOME . "/.guix-profile", $HOME ."/.guix-home/profile", $GUIX_PROFILE, $GUIX_ENVIRONMENT] |
| 4 | let vimplugins = directory . "/share/vim/vimfiles" |
| 5 | if isdirectory(vimplugins) |
| 6 | let &pp = join([&pp,vimplugins], ',') |
| 7 | endif |
| 8 | endfor |