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

vim: gv doesn't work after y on the visual selection #13760

Closed
1 task done
ConradIrwin opened this issue Jul 3, 2024 · 2 comments
Closed
1 task done

vim: gv doesn't work after y on the visual selection #13760

ConradIrwin opened this issue Jul 3, 2024 · 2 comments
Labels
defect [core label] vim

Comments

@ConradIrwin
Copy link
Member

Check for existing issues

  • Completed

Describe the bug / provide steps to reproduce it

In vim mode:

  • Select a word with viw
  • y to yank it
  • gv to reselect it.

It should restore your selection, but it doesn't.

Environment

Zed: v0.143.0 (Zed Nightly ce48555)
OS: macOS 14.5.0
Memory: 128 GiB
Architecture: aarch64

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

No response

If applicable, attach your ~/Library/Logs/Zed/Zed.log file to this issue.

Zed.log
@kuglee
Copy link

kuglee commented Jul 8, 2024

Yeah the gv command works weirdly. Besides this issue it doesn't reselect multiple lines if multiple line were yanked.

ConradIrwin added a commit that referenced this issue Jul 19, 2024
Fixes: #13720

Co-Authored-By: <[email protected]>



Release Notes:

- vim: Fixed `gv` after `y`, `d`, etc.
([#13760](#13760)).
@JosephTLyons
Copy link
Contributor

This should be included in Zed v0.146.0-pre.

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

No branches or pull requests

3 participants