在 VIM 中如何找到下一个点“.”使用命令f?我尝试了 f. 但它不起作用。
f
f.
In VIM how do you find the next dot "." using the command f? I tried f. and it doesn't work.
f. 只要它在同一行,就对我有用。如果您想跨行搜索,则必须使用 /\. 通过 / 进行搜索。
/\.
/
f. works for me as long as its on the same line. If you want to search across lines you'll have to search with / using /\..
请记住,f 仅适用于当前行,而 / 用于向前搜索。 / 使用 RE,因此您必须转义 .,因此按键序列 /\. 就可以解决问题。
Remember that f is only for the current line, and / is for searching forward. / uses REs, so you must escape ., thus the key sequence /\.<ENTER> does the trick.
/\.<ENTER>
也许f\.
f\.
你可能需要转义。因为它是一个特殊字符,可以匹配任何字符。
Maybe f\.
You may need to escape . since it is a special character which will match any character.
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
暂无简介
文章 0 评论 0
接受
发布评论
评论(3)
f.
只要它在同一行,就对我有用。如果您想跨行搜索,则必须使用/\.
通过/
进行搜索。f.
works for me as long as its on the same line. If you want to search across lines you'll have to search with/
using/\.
.请记住,f 仅适用于当前行,而 / 用于向前搜索。 / 使用 RE,因此您必须转义 .,因此按键序列
/\.
就可以解决问题。Remember that f is only for the current line, and / is for searching forward. / uses REs, so you must escape ., thus the key sequence
/\.<ENTER>
does the trick.也许
f\.
你可能需要转义。因为它是一个特殊字符,可以匹配任何字符。
Maybe
f\.
You may need to escape . since it is a special character which will match any character.