开发者

Find closest ocurrence of "." in VIM

开发者 https://www.devze.com 2023-04-06 02:47 出处:网络
In VIM how do you find the next dot \".\" using the command f? I tried f. and it doesn\'t work. 开发者_高级运维f. works for me as long as its on the same line. If you want to search across lines yo

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

精彩评论

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