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.
开发者_高级运维
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.
精彩评论