pub enum VimMode {
Insert,
Normal,
}Expand description
Vim-emulation sub-mode (only consulted when TuiState::vim_enabled is
true — see that field’s doc comment for the deliberately-basic scope:
hjkl motion, i/a/o mode entry, x/dd deletion. This is NOT a
full vim emulation (no registers, no visual mode, no .-repeat, no
counts) — a shippable-complete BASIC modal editor, with full vim cited
as a follow-up rather than half-built. See the crate-level tui module
doc comment’s “shippable vs staged” note.
Variants§
Insert
Every key inserts/edits (the default when vim emulation is off, or
the sub-mode i/a/o enter).
Normal
Motion/command keys (h/l/x/d/…) — the mode Esc returns to.
Trait Implementations§
impl Copy for VimMode
impl Eq for VimMode
impl StructuralPartialEq for VimMode
Auto Trait Implementations§
impl Freeze for VimMode
impl RefUnwindSafe for VimMode
impl Send for VimMode
impl Sync for VimMode
impl Unpin for VimMode
impl UnsafeUnpin for VimMode
impl UnwindSafe for VimMode
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.