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 1LXrrf-0003gH-1Y for garchives@archives.gentoo.org; Fri, 13 Feb 2009 06:49:31 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id C3F45E0290; Fri, 13 Feb 2009 06:49:28 +0000 (UTC) Received: from mail.caf.com.tr (mail.caf.com.tr [88.250.85.68]) by pigeon.gentoo.org (Postfix) with ESMTP id 7FE3BE0290 for ; Fri, 13 Feb 2009 06:49:28 +0000 (UTC) Received: from localhost (sunny.caf.com.tr [127.0.0.1]) by mail.caf.com.tr (Postfix) with ESMTP id 9B91E39E372 for ; Fri, 13 Feb 2009 06:49:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=caf.com.tr; h= content-transfer-encoding:content-type:in-reply-to:references :subject:mime-version:user-agent:from:date:message-id:received :received:x-virus-scanned; s=originating; t=1234507766; bh=ppc6S VxhKPnx8+vMAmbJVYd2LVH+wQ9p/6KSVaAH5hA=; b=jauLvRp/Ekil2bZF+wAZq hHRv3f+4qQmo9HZJwyB8rsbFwpNC//6z/fGP7B++/+I3G1JMox1QGtAWsQcedLXj 75w5iMzFEGzoKFTBtloz0EbTHueJSHfsaPwqAdqktMGCUBwCyAskSt6AOMlmQHuL TJPWdBrsRUZ5Ivn2dg9A3E= X-Virus-Scanned: amavisd-new at caf.com.tr Received: from mail.caf.com.tr ([127.0.0.1]) by localhost (sunny.caf.com.tr [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id g+u4VUhzmsCt for ; Fri, 13 Feb 2009 06:49:26 +0000 (UTC) Received: from [10.0.9.30] (unknown [10.0.9.30]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: eray.aslan@zeplin.net) by mail.caf.com.tr (Postfix) with ESMTPSA id 0E6CD39E36F for ; Fri, 13 Feb 2009 06:49:26 +0000 (UTC) Message-ID: <499517F5.1090003@caf.com.tr> Date: Fri, 13 Feb 2009 08:49:25 +0200 From: Eray Aslan User-Agent: Thunderbird 2.0.0.19 (Windows/20081209) 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 To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] Commenting out multiple lines in vim References: <20090213005343.GC4577@ca.inter.net> <9951CF8D-E681-4180-93ED-F89B67D26F59@stellar.eclipse.co.uk> In-Reply-To: <9951CF8D-E681-4180-93ED-F89B67D26F59@stellar.eclipse.co.uk> X-Enigmail-Version: 0.95.7 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Archives-Salt: bee57a86-ac9d-4e83-919e-cb7caff94964 X-Archives-Hash: 1315363a7b79b38a880cf7ff00a5dec9 On 13.02.2009 07:48, Stroller wrote: > 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? Column and line numbers are shown on the lower right part of the screen. > Surely it's easier just to highlight the lines? Not when you are working with the keyboard most of the time. Taking your hands off the keyboard to use the mouse is time consuming and becomes rather annoying. -- Eray