pub struct Vi { /* private fields */ }
Expand description
This parses incoming input Event
s like a Vi-Style editor
Implementations
sourceimpl Vi
impl Vi
sourcepub fn new(
insert_keybindings: Keybindings,
normal_keybindings: Keybindings
) -> Self
pub fn new(
insert_keybindings: Keybindings,
normal_keybindings: Keybindings
) -> Self
Creates Vi editor using defined keybindings
Trait Implementations
sourceimpl EditMode for Vi
impl EditMode for Vi
sourcefn parse_event(&mut self, event: Event) -> ReedlineEvent
fn parse_event(&mut self, event: Event) -> ReedlineEvent
Translate the given user input event into what the LineEditor
understands
sourcefn edit_mode(&self) -> PromptEditMode
fn edit_mode(&self) -> PromptEditMode
What to display in the prompt indicator
Auto Trait Implementations
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more