wyc
wyc

Reputation: 55263

Vim: Match character with a word on the left?

I want to match the following ... in Vim:

Um...yeah.

No...

I know in most programming languages you can do this:

/\b\.\.\./g

How about Vim? How can I match the ... in this situation?

Upvotes: 0

Views: 38

Answers (1)

Birei
Birei

Reputation: 36262

You can try the following one:

/\v\w\zs[.]{3}

It matches three dots that follow any word character, you can use some kind of quantifiers after the \w to match a minimum number of letters, but I hope you get the idea.

Upvotes: 2

Related Questions