Using vim-rvm and ack.vim, I would like to be able to search through the current path (set by NERDTree) and through the gem directory (set by RVM command from vim.rvm).
I know that ack allows to search through multiple directories
ack controller dir1 dir2
However, is there a way to append gem directory to ack.vim?
You have to write a custom command (e.g. :AckMore
) or redefine the :Ack
command to include additional paths. Sketch (not working; I don't use those plugins):
:command! -nargs=* AckMore execute 'Ack' <q-args> g:gem_directory