better code to deal with ri_vim loading