开发者

Find closest ocurrence of "." in VIM

In VIM how do you find the next dot "." using the command f? I tried f. and it doesn't work.

Find closest ocurrence of "." in VIM

开发者_高级运维


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 /\..


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.


Maybe f\.

You may need to escape . since it is a special character which will match any character.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜