Vim-删除最多搜索到的字符串 [英] Vim - delete up to searched string
本文介绍了Vim-删除最多搜索到的字符串的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
是否有VIM命令/组合键可以执行类似 dt/mystring
的操作(无效)?
Is there a VIM command / key combination that would do something like dt/mystring
(which doesn't work)?
dta
尝试在当前行上找到字母 a
,但是我想删除所有内容,直到搜索到的字符串(可能在某些字符串上其他行).
dta
tries to find letter a
on current line, but I'd like to delete everything up to searched string (possibly on some other line).
推荐答案
尝试一下
d/mystring
它不会删除字符串本身.
It won't delete the string itself.
这篇关于Vim-删除最多搜索到的字符串的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文