Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Behavior of the plugin with "iw" motion with a count #315

Open
Aster89 opened this issue Nov 19, 2020 · 0 comments
Open

Behavior of the plugin with "iw" motion with a count #315

Aster89 opened this issue Nov 19, 2020 · 0 comments

Comments

@Aster89
Copy link
Contributor

Aster89 commented Nov 19, 2020

Given this text

Vim 7 is recommended for full functionality.

and the cursor in the middle of the word recommended, if I press v4iw, what gets visually selected is the text recommended for , including the trailing space, which is in line with :h iw (indeed, it reads White space between words is counted too); at this point, if press S), the text becomes correcly

Vim 7 is (recommended for )full functionality.

On the other hand, if I start from the same initial conditions and press leaderys4iw), I obtain:

Vim 7 is (recommended for) full functionality.

I expectated that the two command sequences should lead to the same result.

Is my expectation correct and there's a bug? If not, what is the explanation of the current behavior?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant