Fix history. Fix vi key bindings. Add history substring search.