We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Y
While having some text selected, Y in zed yanks only the selected text. In Vim it yanks the whole line(lines)
fn main() { println!("Hello, world!"); }
H
vw
P
Result in zed:
fn main() { println!("Hello,Hello, world!"); }
Result in vim:
fn main() { println!("Hello, world!"); println!("Hello, world!"); }
I realize, this example is silly, but it is the shortest I came up with.
In real world I use similar moves with multiline selection (to clone whole functions):
}
v%
It works in vim, but not in zed.
Zed: v0.166.1 (Zed) OS: macOS 14.7.0 Memory: 16 GiB Architecture: aarch64
The text was updated successfully, but these errors were encountered:
There are better ways to copy a function, such as yif, yaf, yii, yaI.
yif
yaf
yii
yaI
About the issue of selecting text and using Y to copy the line that you mentioned, it indeed exists.
I found it implemented in past commit logs.
vim: Add :y #17448
But removing in this commit
vim: Command selection fixes #18424
But the code is left with the action VisualYankLine
Sorry, something went wrong.
Thank you for these! They are faster and more convenient for sure.
Successfully merging a pull request may close this issue.
Check for existing issues
Describe the bug / provide steps to reproduce it
Summary
While having some text selected,
Y
in zed yanks only the selected text. In Vim it yanks the whole line(lines)Steps to reproduce
H
vw
Y
P
Result in zed:
Result in vim:
Other notes
I realize, this example is silly, but it is the shortest I came up with.
In real world I use similar moves with multiline selection (to clone whole functions):
}
v%
to select the function bodyY
It works in vim, but not in zed.
Zed Version and System Specs
Zed: v0.166.1 (Zed)
OS: macOS 14.7.0
Memory: 16 GiB
Architecture: aarch64
If applicable, add screenshots or screencasts of the incorrect state / behavior
If applicable, attach your Zed.log file to this issue.
Zed.log
The text was updated successfully, but these errors were encountered: