This plugin add capability to search in folders via NERDtree. The search use ag.vim. The code is almost a copypaste from Mohammad Satrio's nerdtree-ack. But use the silver searcher instead of Ack.
-
Install ag.vim
-
Install this plugin via your package manager (pathogen/vundle/VAM/plug-vim)
or just put the plugin file in your
.vim/plugin
directory
- Open NERDtree
- Point to a directory
- Press
ms
- Enter search term (e.g.
control\ panel -i
) - Profit!
- Doesn't change current open buffers! This feature is what necessitate the use of latest ag.vim
- Uses ag.vim syntax:
- Use
\
to write a space (e.g.control\ panel
) - Or enclose the term in quotes (e.g.
"control panel"
) - The default behavior is case sensitive. Use
-i
params for case insensitive (e.g."control panel" -i
)
- Use
- Uses ag.vim buffer behavior