however, I noticed that when using vim-grepper and Grepper as grep wrapper, the subsequent cdo command is not executed, namely the quickfix windows opens up and no replacement is done. If instead I use the standard vimgrep <cword> % with the above function all works as intended.
I suppose it may have to do with having to use <Plug>(GrepperOperator) in a function rather than Grepper as command, or am I making some other trivial mistake (for instance there are flags to directly execute cdo commands after grepping)?
I am writing a simple function to search the word under cursor and replace it automatically, something along the lines of
however, I noticed that when using
vim-grepper
andGrepper
as grep wrapper, the subsequentcdo
command is not executed, namely the quickfix windows opens up and no replacement is done. If instead I use the standardvimgrep <cword> %
with the above function all works as intended.I suppose it may have to do with having to use
<Plug>(GrepperOperator)
in a function rather thanGrepper
as command, or am I making some other trivial mistake (for instance there are flags to directly executecdo
commands after grepping)?