Re: a quick question: how to add comments for several lines at the same time

2011-09-30 Thread Jochen Spieker
lina: > > When I use vim (how can I add comments for several lines at the same time, > not one by one) > add # There's probably a more efficient way to do this, but I always go to the start of the first/last line, press Ctrl-v (enters visual block mode), mark the lines I want to comment, then pre

Re: a quick question: how to add comments for several lines at the same time

2011-09-29 Thread John L. Cunningham
On Fri, Sep 30, 2011 at 12:56:54AM +0800, lina wrote: > > How did you set a mark "a"? Type: ma in command mode. -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/201

Re: a quick question: how to add comments for several lines at the same time

2011-09-29 Thread Chris Brennan
On Thu, Sep 29, 2011 at 12:52 PM, John L. Cunningham wrote: On Fri, Sep 30, 2011 at 12:31:00AM +0800, lina wrote: > > Hi, > > > > When I use vim (how can I add comments for several lines at the same > time, not > > one by one) > > add # > > I set a mark "a" at the first row that I want to comment

Re: a quick question: how to add comments for several lines at the same time

2011-09-29 Thread lina
On Fri, Sep 30, 2011 at 12:52 AM, John L. Cunningham wrote: > On Fri, Sep 30, 2011 at 12:31:00AM +0800, lina wrote: > > Hi, > > > > When I use vim (how can I add comments for several lines at the same > time, not > > one by one) > > add # > > I set a mark "a" at the first row that I want to commen

Re: a quick question: how to add comments for several lines at the same time

2011-09-29 Thread John L. Cunningham
On Fri, Sep 30, 2011 at 12:31:00AM +0800, lina wrote: > Hi, > > When I use vim (how can I add comments for several lines at the same time, not > one by one) > add # I set a mark "a" at the first row that I want to comment, then move the cursor to the last row I want commented and type: :'a,.s/^/

a quick question: how to add comments for several lines at the same time

2011-09-29 Thread lina
Hi, When I use vim (how can I add comments for several lines at the same time, not one by one) add # are there some trick? (without using some package: http://www.vim.org/scripts/script.php?script_id=1528 ) Thanks ahead, -- Best Regards, lina