Skip to content

Undo after visual select doesn't behave like in vi #119

@quarnster

Description

@quarnster

Try the following:

  1. Open up a new buffer
  2. Hit i to enter insert mode
  3. Type TesT
  4. Hit escape to exit insert mode
  5. Hit v to begin a visual selection
  6. Hit b to select to the start of the word
  7. Hit u
  8. Hit u
  9. Hit u

In vi, these last three steps:

  1. TesT -> test
  2. test -> TesT
  3. TesT -> (nothing)

With this plugin you instead get:

  1. TesT -> test
  2. test -> TesT (+ TesT is selected and we're now in visual mode)
  3. TesT -> test

So the selection is an undo level but shouldn't be. Any ideas how to fix this? Can I get the undo stack in some way?

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