fix switching between vi-modes