How to map keystrokes to a command in vim?
For example, I would like to create a custom command Cmt
, and I could use it to comment out lines 10-20 like this: :10,20Cmt
I have tried something like :command -range Cmt <line1>gg O ...
but it didn't work.