support vi mode in bash