Set vi mode and smarter hist search