Fixed mvim function