Link to home
Start Free TrialLog in
Avatar of bayesianmind
bayesianmind

asked on

Commenting and uncommenting lines

How would I use vim to quickly commend and uncomment lines?

It just needs to add # to X number of lines from the current line.

The uncomment I could do with regexp (s/^#//), but if there is a better way I'd love to hear it.

ASKER CERTIFIED SOLUTION
Avatar of ozo
ozo
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of bayesianmind
bayesianmind

ASKER

Thanks that does the job but it adds a large yellow bar to the left side of the window.. what is that and how do I get rid of it?
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial