I'm trying to navigate to next dot in a file using windows version of vim:
but it doesn't do anything as well as all other similar commands:
F. d. D.
What is correct way to do it?
Vi and Vim Stack Exchange is a question and answer site for people using the vi and Vim families of text editors. It only takes a minute to sign up.Sign up to join this community
f command only works within the current line. But you can use the sentence motions
( "one sentence back" and
) "next sentence" to navigate across multiple lines.
Although this only works if the dot is followed by a space, tab or linebreak as mentioned in the help
A sentence is defined as ending at a '.', '!' or '?' followed by either the end of a line, or by a space or tab. Any number of closing ')', ']', '"' and ''' characters may appear after the '.', '!' or '?' before the spaces, tabs or end of line. A paragraph and section boundary is also a sentence boundary.
If you can't hit your dot this way you should use the search function
/\. Remember to escape the dot character because it has a special meaning in the search function. Otherwise you would search for every character.