You're viewing a comment by abcuser and its responses.

abcuser Permalink
January 06, 2009, 16:34

Hi,
I have been asking around how to add or remove comments (#) before multiple lines in vim program. This is useful if you have a bash script but would like to comment out multiple lines and vice versa.

There are the steps:
1. mark lines
2. execute: ,# to comment
or execute ,3 to uncomment (3 and # are on the same key).

Read more about it on Ubuntu forum where I was asking for help:
http://ubuntuforums.org/showthread.php?t=896481&highlight=vim

Reply To This Comment

(why do I need your e-mail?)

(Your twitter name, if you have one. (I'm @pkrumins, btw.))

Type the first letter of your name: (just to make sure you're a human)

Please preview the comment before submitting to make sure it's OK.