Custom operators #702
-
Are custom operators supported or are there any plans to support them? Here's a silly example that replaces nnoremap gx :set opfunc=Redact<cr>g@
function! Redact(type)
execute "normal `[v`]rx"
endfunction But sourcing the same code in |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Just for context: I'd like to use this to create an operator that executes Currently, the closest I can get to this is mapping Another cool application would be an operator that applies |
Beta Was this translation helpful? Give feedback.
This has just been merged. It should be available in the next release (probably 2.10), and available in EAP builds before then.