I found similar topic, but I want to do something different. When using nerd command, in normal mode You can do:
5ggv12gg,c<space>
It will toggle comment from line 5 to 12. But instead I would like to be able to write:
:5,12Ct
So I tried to write my own command for that using predefined nerd commenter command:
command! -nargs=? -range=% Ct <line1>ggv<line2>gg<Leader>c<space>
but as I assumed it gives me an error "not an editor command: 5ggv12gg,c " - probably because it expects command like :something, not normal mode command.
Is there a way to achieve something like this?