-有没有办法复制最多一个搜索词,包括这个词? [英] -- is there a way to copy up to a search term, _including_ the term?

查看:65
本文介绍了-有没有办法复制最多一个搜索词,包括这个词?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如果我有以下单词

cat Oliver Louis

并且光标位于 c上,我可以使用 y / Louis< CR> (其中 CR是回车键),它将复制字符串 cat Oliver。

and the cursor is on "c", I can copy up to the beginning of Louis with y/Louis<CR> (where "CR" is the enter key), which will copy the string "cat Oliver ".

是否可以复制搜索字词以及 Louis的复制字符串 cat Oliver Louis?

Is there a way to copy the search term, "Louis", as well, for a copied string of "cat Oliver Louis"? Thanks in advance.

推荐答案

使用 / e 修饰符: y / Louis / e 。如果您想重复上一个搜索模式,只需将其省略: y // e< CR>

Use the /e modifier: y/Louis/e<CR>. If you want to repeat the last search pattern, just leave it out: y//e<CR>.

:help search-offset

这篇关于-有没有办法复制最多一个搜索词,包括这个词?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆