jviotti
jviotti

Reputation: 18909

Escaping period in Ack.vim

I'm looking forward to search for the following pattern with Ack.vim:

.section

Where . should only match a period, and not any character.

I tried the following:

What is the correct way of escaping the period?

Upvotes: 0

Views: 328

Answers (2)

Igor Pejic
Igor Pejic

Reputation: 3698

From the documentation:

For instance, '#'. You have to escape it like this :Ack '\\\#define foo' to search for '#define foo'.

Use: :Ack \\\.section

Upvotes: 3

FLemos
FLemos

Reputation: 183

From the documentation:

For instance, '#'. You have to escape it like this :Ack '\\\#define foo' to search for '#define foo'.

Upvotes: 1

Related Questions