Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replace mode in Vim #4440

Closed
1 task done
schacon opened this issue Oct 1, 2023 · 6 comments
Closed
1 task done

Replace mode in Vim #4440

schacon opened this issue Oct 1, 2023 · 6 comments
Labels
enhancement [core label] vim

Comments

@schacon
Copy link

schacon commented Oct 1, 2023

Check for existing issues

  • Completed

Describe the feature

I'm having a very hard time using the vim mode, as it doesn't appear to support the replace mode.

It's pure muscle memory for me now, so I had to look up what I was even doing, but when I hit 'r' I expect the editor to go into 'replace mode' where typing will start overwriting characters. I do this so often that it makes vim mode very difficult for me to use.

If applicable, add mockups / screenshots to help present your vision of the feature

No response

@schacon schacon added admin read Pending admin review enhancement [core label] triage Maintainer needs to classify the issue labels Oct 1, 2023
@JosephTLyons JosephTLyons added vim and removed triage Maintainer needs to classify the issue admin read Pending admin review labels Oct 2, 2023
@JosephTLyons JosephTLyons transferred this issue from zed-industries/community Jan 24, 2024
@crawshaw
Copy link

crawshaw commented Feb 19, 2024

Note that r appears to be supported now, which in vim means "replace the current character with whatever character is typed next.

What is not yet supported is R which is multi-character replace mode (which keeps tripping me up).

@schacon
Copy link
Author

schacon commented Feb 21, 2024

@crawshaw yeah, that's what I'm doing. but it's so commonly used for me that it's very difficult to use a vim mode without it.

@weartist
Copy link
Contributor

writing a code to support that feature, and I'll commit an MR later

ConradIrwin added a commit that referenced this issue Mar 15, 2024
For #4440, I've only added support for normal, if it's visual mode,
would we like this to delete the current selection row and enter insert
mode?

---------

Co-authored-by: Conrad Irwin <conrad.irwin@gmail.com>
@ConradIrwin
Copy link
Collaborator

This is merged and should land in Zed 0.128 (due to Preview on Wednesday, and stable a week later)

@algora-pbc
Copy link

@weartist: You've been awarded a $500 bounty by schacon! 👉 Complete your Algora onboarding to collect the bounty.

@algora-pbc
Copy link

🎉🎈 @weartist has been awarded $500 by @schacon! 🎈🎊

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement [core label] vim
Projects
None yet
Development

No branches or pull requests

6 participants