lem icon indicating copy to clipboard operation
lem copied to clipboard

Behavior of moving commands differs from vim

Open kenoss opened this issue 6 years ago • 3 comments

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 avatar Sep 23 '19 02:09 kenoss

/label vi-mode

kenoss avatar Sep 23 '19 02:09 kenoss

Please send a pull request.

cxxxr avatar Sep 23 '19 03:09 cxxxr

Sure.

kenoss avatar Sep 23 '19 04:09 kenoss

Fixed by #969.

fukamachi avatar Aug 23 '23 13:08 fukamachi