Visually selecting multi-lines inside backticks

已查看 46 次
跳至第一个未读帖子

Manas

未读,
2024年2月2日 11:50:492月2日
收件人 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

未读,
2024年2月2日 12:46:112月2日
收件人 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

未读,
2024年2月11日 21:30:312月11日
收件人 vim_use
Because then there would be things like this:


Screenshot 2024-02-12 132702.png
回复全部
回复作者
转发
0 个新帖子