I have an operator that I want to make, which I will either release as a seperate vim-mode-plus plugin or include within vim-mode-plus, whichever you prefer :) However I need some help from you please @t9md
What the operator does
It operates on a visual mode line selection (or a single line if it normal mode) and creates a copy of the selection and comments out the original.
For example, if I had three lines selected in visual mode
executing this new operator would result in the code turning into this:
Similarly, operating on a single line would turn
into
I would really appreciate any help on how I would write this.
I have an operator that I want to make, which I will either release as a seperate vim-mode-plus plugin or include within vim-mode-plus, whichever you prefer :) However I need some help from you please @t9md
What the operator does
It operates on a visual mode line selection (or a single line if it normal mode) and creates a copy of the selection and comments out the original.
For example, if I had three lines selected in visual mode
executing this new operator would result in the code turning into this:
Similarly, operating on a single line would turn
into
I would really appreciate any help on how I would write this.
Thanks in advance