Replies: 6 comments
-
Hmm, interesting idea. But consider change the default binding for this 2 command:
to something else more ergonomic. |
Beta Was this translation helpful? Give feedback.
-
@NNBnh Or |
Beta Was this translation helpful? Give feedback.
-
If i understand correctly:
If so we could map it to N and Shift + N . |
Beta Was this translation helpful? Give feedback.
-
I suggested an alternative approach to this same idea in #943 |
Beta Was this translation helpful? Give feedback.
-
I think I don't quite understand all of it (mostly the
If that's all correct, then I'm not sure I understand the Here's an example scenario just to check that I got the basics. If I had:
then did cursor mode +
then
Is that correct? |
Beta Was this translation helpful? Give feedback.
-
@Zoybean I think what you wrote up might be closer to my alternative in #943. I'm a little foggy on this version from the original description though. |
Beta Was this translation helpful? Give feedback.
-
Cursor mode
I think the current multi-cursor system is not powerful and flexible enough.
<space + c> for
cursor mode
:Note: This mode should be continued and display this infobox until pressing
Esc
or,
There are two kinds of cursors, one is
next cursor
and the other isreal cursor
.next cursor
is single and only, always overlaps the selectedtrue cursor
. It represent the next real cursor.next cursor
didn't exist yet before we adjust its position and pressReturn
to make it becomereal cursor
.A new
next cursor
will be spawned when we pressReturn
to make the lastnext cursor
become real.(The new also overlaps)If we want to move the selected real cursor, we could type
c
to change the current kind of cursor groups.For example: We want to move a
real key
but not anext key
,we should enter cursor mode and pressc
Default cursor group is
next cursor group
, which means we can only movenext cursor
by defaultDefault selected real cursor is that single real cursor
Note:
You can restart by pressing
=
,You can move cursor just like normal mode.
Example 1
If we want to select and edit
line 6
andline 10
::g 10
or4j
to move thenext cursor
which overlapped the selected real cursor originally, thenReturn
to ensure thenext cursor
which have moved toline 10
will become real, andEsc
return to normal modexc
to edit themExample 2
Select some words quickly and intuitively:
f b
+Return
,f c
+Return
to make 2next cursors
become real , thenEsc
to return to normal modeWhy not provide some command like
swap
?It is helpful because we can use it in normal mode:
:swap 1,3
to swapaaaa
andcccc
quicklyBeta Was this translation helpful? Give feedback.
All reactions