-
Notifications
You must be signed in to change notification settings - Fork 396
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Searches with "#" blow up #5
Comments
Can you tell me your operating system, version of ack/ack-grep, etc.? I can't recreate your issue. |
Sure, I'm using MacVim Snapshot 52 along with OSX 10.6.4. Ack version is 1.92 (perl 5.10). I'll try it with my Terminal vim instead, maybe its just a macvim bug |
Same issue in pure terminal vim (version 7.2.108) |
Here's all my config settings (http://github.com/railsjedi/vimconfig). Let me know if you can repro with this setup. Thanks! |
The issue at hand is that '#' will get replaced with the alternate file name. You have to escape it like this I do not know if there is anything ack.vim could do about this to make it simpler (i.e. not require any escaping. The same issue should apply to |
thank you. i thought i was going crazy (searching exactly for # and % strings...gah) |
Have encountered this issue too. Escaping with '#' works, but I've spent some time to find it out:). |
Done. |
@blueyed, why the triple slash to escape |
I can confirm, triple is needed. |
Ok. Is this under Linux? Still so if |
@Konfekt This is under all platforms. |
Ok, thank you. Now that I know about |
Hi, guys. I have just tried that with my MacVim (version 7.4.622), and it seems that only one back slash is enough and when I input three, nothing will be found. |
I often need to search for strings that begin with "#" when finding id divs in haml/css
However Ack.vim explodes when using:
error:
ack -Q "#something"
works fine from the command line so something in ack.vim is screwing it upThe text was updated successfully, but these errors were encountered: