Reputation: 18909
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:
\.section
[.]section
-Q .section
What is the correct way of escaping the period?
Upvotes: 0
Views: 328
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
Reputation: 183
From the documentation:
For instance, '#'.
You have to escape it like this :Ack '\\\#define foo'
to search for '#define foo'
.
Upvotes: 1