Fix up/down-arrow history search in vi-mode