Skip to content

Multiple cut works with d but not with x. #290

@colomb8

Description

@colomb8

Describe the issue:

Multiple cut works with d but not with x.

Steps to reproduce

  1. consider the following text:
abc CASE_1 mario
cde CASE_2 luigi
  1. go on char 1 then press C-Down. Now we have 2 cursors, the first on 1 and the second on 2.
  2. press "x" to cut the two digits. Now we have:
abc CASE_ mario
cde CASE_ luigi
  1. Then try to paste them again with p, in any position. It pastes the previous text yanked (if exist, otherwise it duplicates the lines), but not 1 and 2, since it seems that while in V-M mode x deletes but doesn't copy.

Note: a workaround that works is to use dl or dh instead of x. So...I would expect that also x should work.


  • Operating System: Debian on WSL
  • Vim Version: VIM - Vi IMproved 9.1 (2024 Jan 02, compiled Dec 19 2024 15:28:19) Included patches: 1-945
  • commit SHA/branch: commit a6975e7

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions