mhinz / vim-grepper

:space_invader: Helps you win at grep.
MIT License
1.22k stars 59 forks source link

Adding a generic mapping example in wiki on <Plug>(GrepperOperator) flags setting #230

Open milvi opened 4 years ago

milvi commented 4 years ago

Hello,

I have read the Wiki, skimmed through the source.

Can you provide a generic example on how to tweak the GrepperOperator flag mapping behavior ?

I see line 1200 on-wards, let flags = s:get_config().operator ......

I suspect it happens here though have no clue (vimscript ignorant) what to set to trigger or config -buffers -noopen and the likes for the GrepperOperator mappings.

Please, add a single line example on how to set up or pass the option flags for GrepperOperator mappings, so that it can be tweaked at will afterwards.

Kindly

milvi commented 4 years ago

I figured out between line 70 and 110 there is a way but I have no idea whether I am doing it right.

let g:grepper.operator = {} let g:grepper.operator.buffer = 1