I want to format a block of text and I am using a range to select the leading comment of a function. It's all lines starting with
I'm using the range
to select backwards up to the first line not starting with
//, then plus one to get the the start of the comment, and similar thing for the forward search.
If I prefix this with a sed command like
s,^,#, this works. But if I use
gw as command it fails telling me
Not an editor command: ...
How can I apply the text format command to a range?