I would like to set up vim-fzf to do
ag/whatever on the word my cursor is over. With vim-grepper I was able to do gsiw for this and it was fantastic. With fzf I can't seem to figure out how to set that up. (My colleague accomplishes the same task by entering
<CTRL-R><CTRL-W> at the grep prompt, but I figure this could be done better.)
In general though, for the in word commands, how are they set up? (e.g.
If I had a function
foo, how could I send the in word as an argument? i.e. how would I do:
noremap <leader>m :call foo(getreg(*in word*))<cr>
For my specific question, I bet I'll be remapping the call to
fzf#vim#grep, but I thought I'd ask this because I don't even know how to properly refer to the in word stuff.