I have this mapping in vim
map f :Ag --ignore node_modules
I would like to append the result of the 'getcwd()' at the end of the command.
Something like (not working, but gives the idea):
map f :Ag --ignore node_modules :call getcwd()
So the command in vim would look like
:Ag --ignore node_modules ~/project
More context
I am using The silver search through vim using ag.vim. I want to have a normal mode mapping that specify the current working directory in the ag command.
https://github.com/ggreer/the_silver_searcher
https://github.com/rking/ag.vim
Thank you. JF