pub struct Vi { /* private fields */ }
Expand description
This parses incoming input Event
s like a Vi-Style editor
Implementations§
source§impl 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§
source§impl EditMode for Vi
impl EditMode for Vi
source§fn parse_event(&mut self, event: ReedlineRawEvent) -> ReedlineEvent
fn parse_event(&mut self, event: ReedlineRawEvent) -> ReedlineEvent
Translate the given user input event into what the
LineEditor
understandssource§fn edit_mode(&self) -> PromptEditMode
fn edit_mode(&self) -> PromptEditMode
What to display in the prompt indicator
Auto Trait Implementations§
impl RefUnwindSafe for Vi
impl Send for Vi
impl Sync for Vi
impl Unpin for Vi
impl UnwindSafe for Vi
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more