Fix vi mode setting