VIM: ack

#vim

Iā€™m going to start doing a quick summary of the vim plugins I have in my vimrc.

Ack

https://github.com/mileszs/ack.vim

Documentation

https://github.com/mileszs/ack.vim/blob/master/doc/ack.txt

Search for PATTERN in each source file in the tree from the current directory on down. If any files or directories are specified, then only those files and directories are checked. ack may also search STDIN, but only if no file or directory arguments are specified, or if one of them is ā€œ-ā€œ.

Requires ack-grep package on Ubuntu

:Ack [options] {pattern} [{directories}]

Examples

:Ack -i IgNoReCaSe
:Ack -l "filename with match in it"
:Ack --json "^matches json$"