如何跳到vim中的特定字符? [英] How to jump to a specific character in vim?
本文介绍了如何跳到vim中的特定字符?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何在vim中跳到下一个字符X?
How can I jump to the next character X in vim?
我经常使用例如dt:
或ct:
来删除/更改所有内容,直到冒号(或其他字符)为止.
I frequently use, e.g., dt:
or ct:
to delete/change everything up until a colon (or some other character).
是否有任何快捷键组合可将光标位置简单移动到该字符?
Is there any short key combo to simply move my cursor position to that character?
推荐答案
您可以键入f<character>
将光标放在下一个字符上,将F<character>
放在上一个字符上.
You can type f<character>
to put the cursor on the next character and F<character>
for the previous one.
这篇关于如何跳到vim中的特定字符?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文