More specifically, I want to do something like this:
Select some region,
<mark>
int foo(int bar)
{
bar = do_something(bar);
return bar + 1;
}
<point>
and then type a command to do like this:
#if 0
int foo(int bar)
{
bar = do_something(bar);
return bar + 1;
}
#endif
Write an #if 0
at the beginning of the region, and an #endif
at the end. But it could be any arbitrary string really, even /*
and */
to comment out the region.