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 moving commands differs from vim #424

Closed
kenoss opened this issue Sep 23, 2019 · 4 comments
Closed

Behavior of moving commands differs from vim #424

kenoss opened this issue Sep 23, 2019 · 4 comments
Labels

Comments

@kenoss
Copy link
Contributor

kenoss commented Sep 23, 2019

problem

file:

foo
bar baz


Triggering vi-forward-word-end-broad, cursor moves wrong positions.

  • newline: after first move, cursor will be on newline followed foo in lem, but second o in vim.
  • EOB: after 4 times move, cursor will be on 4th line in lem, but 3rd line in vim. This is not only for "E", but "j" also.

possible solution

c.f. https://github.com/cxxxr/lem/compare/master...kenoss:wip/correct-vi-forward-word-end-broad?expand=1 and https://github.com/cxxxr/lem/compare/master...kenoss:wip/correct-vi-next-line?expand=1

Although, I feel that we need more radical change of vi-mode.

@kenoss
Copy link
Contributor Author

kenoss commented Sep 23, 2019

/label vi-mode

@cxxxr
Copy link
Member

cxxxr commented Sep 23, 2019

Please send a pull request.

@kenoss
Copy link
Contributor Author

kenoss commented Sep 23, 2019

Sure.

@fukamachi
Copy link
Collaborator

Fixed by #969.

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

No branches or pull requests

3 participants