pub enum CurswantEffect {
SetFromTarget,
Keep,
PinToEnd,
}Expand description
VM.3g-1: what a motion does to the goal column. A property of the MOTION
(vim’s j always keeps it, $ always pins it), so it lives on the spec
rather than the result — and Self::SetFromTarget is the default, so
every motion that has never heard of curswant, plugin motions included,
behaves as vim’s ordinary motions do.
Variants§
SetFromTarget
The landing column becomes the goal: every horizontal motion, and by the same rule every edit, Insert and yank the host routes through it.
Keep
Aim at the existing goal and leave it untouched: j / k, and later
gj / gk, which vim gives the SAME goal column.
PinToEnd
Pin to end-of-line: $, and later g$.
Trait Implementations§
Source§impl Clone for CurswantEffect
impl Clone for CurswantEffect
Source§fn clone(&self) -> CurswantEffect
fn clone(&self) -> CurswantEffect
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for CurswantEffect
Source§impl Debug for CurswantEffect
impl Debug for CurswantEffect
Source§impl Default for CurswantEffect
impl Default for CurswantEffect
Source§fn default() -> CurswantEffect
fn default() -> CurswantEffect
Returns the “default value” for a type. Read more
impl Eq for CurswantEffect
Source§impl PartialEq for CurswantEffect
impl PartialEq for CurswantEffect
impl StructuralPartialEq for CurswantEffect
Auto Trait Implementations§
impl Freeze for CurswantEffect
impl RefUnwindSafe for CurswantEffect
impl Send for CurswantEffect
impl Sync for CurswantEffect
impl Unpin for CurswantEffect
impl UnsafeUnpin for CurswantEffect
impl UnwindSafe for CurswantEffect
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,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.