Cleanup before vi-mode