ag_path is a NERDTree plugin that adds a menu item to search for a keyword or regex under the selected path using ag.vim.
Use the following commands:
cd ~/.vim/bundle
git clone https://github.com/mortonfox/nerdtree-ag.git
Add the following to your vimrc:
Plugin 'mortonfox/nerdtree-ag'
Install with :PluginInstall
.
Copy ag_path.vim
to ~/.vim/nerdtree_plugin/
(*nix)
or ~/vimfiles/nerdtree_plugin
(Windows).
In the NERDTree window, select the desired folder and then type m
and g
. Enter a keyword or regex at the prompt to get a quickfix list of
ag.vim search results.