cleanup function ordering
start of vi mode