move vi mode to inputrc, which is more general