vi mode for buffer