Skip to content

vim: Pasting using CMD+V in visual mode doesn't fully replace selected lines #41810

@teowelton

Description

@teowelton

Summary

Pasting Using CMD+V in Visual Mode Doesn't Fully Replace Selected Lines

Description

When attempting to replace lines in standard vim, if you select lines using visual mode, then paste using CMD+v, it replaces all selected content. In zed, however, it replaces only after the cursor. If using p instead of CMD+v in Vim mode, it will fully replace the selected content.

Steps to reproduce:

  1. Ensure Zed is in Vim mode
  2. Add content to a file
  3. Select lines to replace using visual mode (Shift+v), ensuring that the cursor is in the middle of a line
  4. Use CMD+V to paste and replace selected content instead of p

Expected Behavior: All selected content is replaced with content from clipboard
Actual Behavior: Only selected content past the cursor is replaced with content from clipboard

Demo:

Screen.Recording.2025-11-03.at.12.00.12.mov

Zed Version and System Specs

Zed: v0.210.4 (Zed)
OS: macOS 26.0.1
Memory: 64 GiB
Architecture: aarch64

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:editorFeedback for code editing, formatting, editor iterations, etcarea:parity/vimFeedback for Vim parity featuresstate:reproducibleVerified steps to reproduce included and someone on the team managed to reproduce

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions