From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([69.77.167.62] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1LXquk-0004FN-J3 for garchives@archives.gentoo.org; Fri, 13 Feb 2009 05:48:38 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 6741DE039D; Fri, 13 Feb 2009 05:48:36 +0000 (UTC) Received: from smtpout.karoo.kcom.com (smtpout.karoo.kcom.com [212.50.160.34]) by pigeon.gentoo.org (Postfix) with ESMTP id 1DC24E039D for ; Fri, 13 Feb 2009 05:48:36 +0000 (UTC) X-IronPort-AV: E=Sophos;i="4.38,199,1233532800"; d="scan'208";a="72861175" Received: from unknown (HELO [192.168.1.71]) ([213.152.39.89]) by smtpout.karoo.kcom.com with ESMTP; 13 Feb 2009 05:48:35 +0000 Message-Id: <9951CF8D-E681-4180-93ED-F89B67D26F59@stellar.eclipse.co.uk> From: Stroller To: gentoo-user@lists.gentoo.org In-Reply-To: <20090213005343.GC4577@ca.inter.net> Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org Mime-Version: 1.0 (Apple Message framework v930.3) Subject: Re: [gentoo-user] Commenting out multiple lines in vim Date: Fri, 13 Feb 2009 05:48:26 +0000 References: <20090213005343.GC4577@ca.inter.net> X-Mailer: Apple Mail (2.930.3) X-Archives-Salt: 27a17213-606a-479e-9206-414950246076 X-Archives-Hash: 61c4f1ebc610706c1494b70e676f853c On 13 Feb 2009, at 00:53, Philip Webb wrote: > 090212 Stroller quoted: >> In vim, you can just select the rectangular region with Ctrl-v, >> then type "I#". This will insert # in each line at the same >> column. > > If you want to comment a series of lines m-n , it's quicker to do : > > :m,ns/^/#/ I saw similar comments in my Google searches, but I am flummoxed how one could find it so. Is it only on my keyboard that forward-slash is a "lower-case" character that is accessed *without* the shift key deployed? How do you know m & n? Surely it's easier just to highlight the lines? Stroller.