Friday, February 2, 2024

Re: Visually selecting multi-lines inside backticks





------ Original Message ------
From: "Manas" <manas18244@iiitd.ac.in>
To: "vim" <vim_use@googlegroups.com>
Sent: Friday, 2 Feb, 2024 At 4:50 PM
Subject: Visually selecting multi-lines inside backticks

Hi, this is quite a stupid question but why doesn't backticks work for
multi-line selection via something like vi`

I have some blocks like

`
lorem ipsum
`

and I want to select whole inside the backticks. I am reading that ',",` are
only matched in the same lines.

Thanks
--
Manas

--
--

Hi Manas
there may be a niftier way, but I wd search for the backtick:

/`

then type V to go into Visual line mode, then n to search for the second tick.

Then you can type : if you are after a substitute command, or y to yank the marked material.

regards - Chris

No comments: