pub struct Normal {
pub indent_on_capital_i: bool,
pub f_and_t_set_search: bool,
/* private fields */
}Fields§
§indent_on_capital_i: boolWheter to indent the line when pressing the I key
The default is true.
Normally, when you press 'I', the line will be reindented,
in order to send you to the “proper” insertion spot, not just
to the first non whitespace character.
f_and_t_set_search: boolMakes the 'f' and 't' keys set the search pattern
If you type "fm", for example, and then type 'n', 'n'
will search for the next instance of an 'm' in the
Buffer
Implementations§
Source§impl Normal
impl Normal
Sourcepub fn set_brackets<'a>(&mut self, brackets: impl Iterator<Item = [&'a str; 2]>)
pub fn set_brackets<'a>(&mut self, brackets: impl Iterator<Item = [&'a str; 2]>)
Changes what is considered a “bracket” in Normal mode
More specifically, this will change the behavior of keys like
'm' and the 'u' object, which will now consider more
patterns when selecting.
pub fn with_no_indent_on_capital_i(self) -> Normal
Trait Implementations§
Source§impl Mode for Normal
impl Mode for Normal
impl Copy for Normal
Auto Trait Implementations§
impl Freeze for Normal
impl RefUnwindSafe for Normal
impl Send for Normal
impl Sync for Normal
impl Unpin for Normal
impl UnwindSafe for Normal
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.