vim: Allow :cpplink for CopyPermalinkToLine (#20707)

Conrad Irwin created

Release Notes:

- vim: Added `:<range>cpplink` to copy a permanent git link to the
highlighted range to the clipboard

Change summary

crates/vim/src/command.rs | 1 +
1 file changed, 1 insertion(+)

Detailed changes

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),
     ]
 }