Gentoo Archives: gentoo-user

From: Stroller <stroller@××××××××××××××××××.uk>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Commenting out multiple lines in vim
Date: Fri, 13 Feb 2009 05:48:38
Message-Id: 9951CF8D-E681-4180-93ED-F89B67D26F59@stellar.eclipse.co.uk
In Reply to: Re: [gentoo-user] Commenting out multiple lines in vim by Philip Webb
1 On 13 Feb 2009, at 00:53, Philip Webb wrote:
2
3 > 090212 Stroller quoted:
4 >> In vim, you can just select the rectangular region with Ctrl-v,
5 >> then type "I#<ESC>". This will insert # in each line at the same
6 >> column.
7 >
8 > If you want to comment a series of lines m-n , it's quicker to do :
9 >
10 > :m,ns/^/#/
11
12 I saw similar comments in my Google searches, but I am flummoxed how
13 one could find it so.
14
15 Is it only on my keyboard that forward-slash is a "lower-case"
16 character that is accessed *without* the shift key deployed?
17
18 How do you know m & n? Surely it's easier just to highlight the lines?
19
20 Stroller.

Replies

Subject Author
Re: [gentoo-user] Commenting out multiple lines in vim Eray Aslan <eray.aslan@×××××××.tr>