Skip to content

armgit / zed

Public Imported from GitHub
0

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.

vim: Allow :cpplink for CopyPermalinkToLine (#20707)

Conrad Irwina8df0642a8d1
diff --git a/crates/vim/src/command.rs b/crates/vim/src/command.rs
index abc7a31aa84..2fa75c85797 100644
--- a/crates/vim/src/command.rs
+++ b/crates/vim/src/command.rs
@@ -690,6 +690,7 @@ fn generate_commands(_: &AppContext) -> Vec<VimCommand> {
VimCommand::new(("0", ""), StartOfDocument),
VimCommand::new(("e", "dit"), editor::actions::ReloadFile)
.bang(editor::actions::ReloadFile),
+ VimCommand::new(("cpp", "link"), editor::actions::CopyPermalinkToLine).range(act_on_range),
]
}