Skip to content

Why a do selection but i don't? #2924

Answered by the-mikedavis
eailfly asked this question in Q&A
Discussion options

You must be logged in to vote

Currently a cursor must be at either the anchor (beginning) or head (end) of a selection (or both if it's a 1-width selection). If i extended the selection, the cursor would end up within the selection which is not allowed. If a retained the selection but did not extend it, the cursor would be detached from the selection. You could collapse the selection to the head with ; before hitting li to append without extending or retaining the selection. That behavior would be a worse default though in multi-selection editing scenarios.

Consider this contrived example:

[
  {"data": 87},
  {"data": 88},
  {"data": 89}
]

If you wanted to add .0 to the ends of those digits, you could use

%s\d+a.0

th…

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@eailfly
Comment options

@sibouras
Comment options

Answer selected by eailfly
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants
Converted from issue

This discussion was converted from issue #2922 on June 30, 2022 14:15.