# Using ack for search within project via Vim

**URL:** <https://discuss.dgraph.io/t/using-ack-for-search-within-project-via-vim/785>\
**Category:** Misc\
**Created:** [September 3, 2016, 2:41pm UTC](https://discuss.dgraph.io/t/using-ack-for-search-within-project-via-vim/785 "2016-09-03T14:41:08Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![mrjn](https://yyz1.discourse-cdn.com/flex007/user_avatar/discuss.dgraph.io/mrjn/32/775_2.png) [@mrjn](https://discuss.dgraph.io/u/mrjn)\
**Post date:** [September 3, 2016, 2:41pm UTC](https://discuss.dgraph.io/t/using-ack-for-search-within-project-via-vim/785/1 "2016-09-03T14:41:08Z")

</div>

Hey guys,

Picked up a few things from Practical Vim yesterday. I was looking for a way to search within entire Dgraph directory, ignoring `vendor` folder, and then going over the results, all within Vim.

```auto
" Use ack for vim grep
set grepprg=ack\ --ignore-dir\ vendor\ --nogroup\ --column\ $*
set grepformat=%f:%l:%c:%m

```

This allows you to run things like `:grep 'UidList'`, which then opens a quick fix list of all results. To make navigation through this easier, Tim Pope has a nice plugin, that you can install. This is my set up via Vundle.

```auto
" Navigation for quick fix and other vim lists
Plugin 'tpope/vim-unimpaired'

```

Now you can jump through the list using `]q` for going one result forward and `[q` for one result backward. Also, there’s a whole range of commands starting with `:c` that you can use to navigate the list.

This should make finding things and navigating them much easier. Enjoy!
