make functions to change editor mode for an EditBuffer. improve command mode by displaying partially typed commands