To call a custom operator with a mapping, one can do
nnoremap <Plug>(Foo) :set opfunc=Baa<CR>g@
<Plug>(Foo) expects a motion, after which the function
Baa is called.
Baa takes in a single
type argument, and processes the
'] marks accordingly.
Now, how can I add argument(s) to
Baa, and call it with a mapping?
That is, suppose I have
function! Baa(type, arg1) " do stuff ... " process a:arg1 endfunction
How would I map
arg1 is allowed to vary, depending on the context.)