Fixes vi editing mode