3 ms·
I'm the author of Ag. I don't know how you're running Ag, but it should highlight and print line numbers like Ack. If you had read the README, you'd know tha
by AngryParsley 14y ago
I'm the author of Ag.
I don't know how you're running Ag, but it should highlight and print line numbers like Ack.
If you had read the README, you'd know that Ag is faster than Ack because it uses tricks like mmap()ing files, pthreads to take advantage of multiple CPU cores, boyer-moore-horspool strstr(), and PCRE's JITed regex engine.
I don't use vim, but some Ag users do. There's an ag.vim: https://github.com/epmatsw/ag.vim https://github.com/epmatsw/ag.vim