> DarkOtter wrote:
>>> It's a little bit hacky, but the way I do that is to do a substitute with 
>>> the
>>> 'start of line' token in the regexp. That way you can use a standard vim 
>>> range
>>> e.g. 1,10 to do lines 1 to 11

That's the way that I've always tended to do it, but using lines as
often it's easier than counting...

So...

:set nu
:s50,200/^/#/g

...where lines 50-200 are the ones you want to comment.

Sean

-- 
ubuntu-uk@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-uk
https://wiki.ubuntu.com/UKTeam/

Reply via email to