Visually selecting multi-lines inside backticks

48 views
Skip to first unread message

Manas

unread,
Feb 2, 2024, 11:50:49 AMFeb 2
to vim
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

c.willis111

unread,
Feb 2, 2024, 12:46:11 PMFeb 2
to vim...@googlegroups.com
--
--

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

Maxim Kim

unread,
Feb 11, 2024, 9:30:31 PMFeb 11
to vim_use
Because then there would be things like this:


Screenshot 2024-02-12 132702.png
Reply all
Reply to author
Forward
0 new messages