Skip to content
This repository was archived by the owner on Apr 6, 2018. It is now read-only.
This repository was archived by the owner on Apr 6, 2018. It is now read-only.

vim inserts are interrupted by cursor movement, vim-mode inserts aren't #565

Closed
@jacekkopecky

Description

@jacekkopecky

In vim, if you move your cursor around (with mouse or with arrow keys), an insert gets confirmed and a new gets started - they can be undone separately, and only the last part can be redone. To demonstrate:

  1. have 1234 in the text editor, with cursor on 2
  2. type iab<right>cd<esc> – you will have 1ab2cd34 in the text editor
  3. typing u should only undo cd, typing . should only insert cd in the current place

But in vim-mode, typing u undoes both ab and cd insertion, and typing . inserts abcd.

See vim docs for more info about this.

I'll now have a quick look if I can fix this easily.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions