pub enum Motion {
Show 33 variants
Left,
Right,
Up,
Down,
WordFwd,
BigWordFwd,
WordBack,
BigWordBack,
WordEnd,
BigWordEnd,
WordEndBack,
BigWordEndBack,
LineStart,
FirstNonBlank,
LineEnd,
FileTop,
FileBottom,
Find {
ch: char,
forward: bool,
till: bool,
},
FindRepeat {
reverse: bool,
},
MatchBracket,
WordAtCursor {
forward: bool,
whole_word: bool,
},
SearchNext {
reverse: bool,
},
ViewportTop,
ViewportMiddle,
ViewportBottom,
LastNonBlank,
LineMiddle,
ParagraphPrev,
ParagraphNext,
SentencePrev,
SentenceNext,
ScreenDown,
ScreenUp,
}Variants§
Left
Right
Up
Down
WordFwd
BigWordFwd
WordBack
BigWordBack
WordEnd
BigWordEnd
WordEndBack
ge — backward word end.
BigWordEndBack
gE — backward WORD end.
LineStart
FirstNonBlank
LineEnd
FileTop
FileBottom
Find
FindRepeat
MatchBracket
WordAtCursor
Fields
SearchNext
n / N — repeat the last / or ? search.
ViewportTop
H — cursor to viewport top (plus count - 1 rows down).
ViewportMiddle
M — cursor to viewport middle.
ViewportBottom
L — cursor to viewport bottom (minus count - 1 rows up).
LastNonBlank
g_ — last non-blank char on the line.
LineMiddle
gM — cursor to the middle char column of the current line
(floor(chars / 2)). Vim’s variant ignoring screen wrap.
ParagraphPrev
{ — previous paragraph (preceding blank line, or top).
ParagraphNext
} — next paragraph (following blank line, or bottom).
SentencePrev
( — previous sentence boundary.
SentenceNext
) — next sentence boundary.
ScreenDown
gj — count visual rows down (one screen segment per step
under :set wrap; falls back to Down otherwise).
ScreenUp
gk — count visual rows up; mirror of Motion::ScreenDown.
Trait Implementations§
impl Eq for Motion
impl StructuralPartialEq for Motion
Auto Trait Implementations§
impl Freeze for Motion
impl RefUnwindSafe for Motion
impl Send for Motion
impl Sync for Motion
impl Unpin for Motion
impl UnsafeUnpin for Motion
impl UnwindSafe for Motion
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<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.Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more