`vim_path_index` does `os.path.join(home, suffix)`, so this should be looking for `$HOME/vimfiles` and `$HOME/.vim`. Then the call to `max` selects the right one based on its existence in the `rtp` or not.