-
-
Notifications
You must be signed in to change notification settings - Fork 166
Description
Currently, opleader.line and opleader.block are used to configure both operator pending mode mappings and visual mode mappings. I think it would be a bit nicer to have separate config options for the two (that is, add another couple of options for visual.line and visual.block).
My personal use case for this is that I pretty much never use operator pending mode, but use normal mode, count prefixes and visual mode all the time. The way mappings are configured currently, you can't have the same key for toggling comments in both normal and visual mode (without disabling all mappings and creating them yourself, which is what I currently do).
Happy to submit a PR for this if you'd accept it, but I expect it would be a ~2 minute change and the main complication would be making the config somewhat backward incompatible, so not sure how you'd want to handle it.
On a somewhat related note, I think the implementation of the mappings themselves could be simplified, and toggle_current_linewise_op could be made redundant if toggle_linewise_count used v:count1 instead of v:count. Then it would still work to toggle a single line when the user doesn't type a count prefix. Haven't tried it so might be missing something.