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 1LXuHf-0001H2-GO for garchives@archives.gentoo.org; Fri, 13 Feb 2009 09:24:31 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 15682E0309; Fri, 13 Feb 2009 09:24:29 +0000 (UTC) Received: from smtpq4.tb.mail.iss.as9143.net (smtpq4.tb.mail.iss.as9143.net [212.54.42.167]) by pigeon.gentoo.org (Postfix) with ESMTP id C6DA5E0309 for ; Fri, 13 Feb 2009 09:24:28 +0000 (UTC) Received: from [212.54.42.137] (helo=smtp6.tb.mail.iss.as9143.net) by smtpq4.tb.mail.iss.as9143.net with esmtp (Exim 4.69) (envelope-from ) id 1LXuHW-00080A-Fp for gentoo-user@lists.gentoo.org; Fri, 13 Feb 2009 10:24:22 +0100 Received: from 5ed3479b.cable.ziggo.nl ([94.211.71.155] helo=data.hosts.roeleveld.co.uk) by smtp6.tb.mail.iss.as9143.net with esmtp (Exim 4.69) (envelope-from ) id 1LXuHU-0000Uo-Ro for gentoo-user@lists.gentoo.org; Fri, 13 Feb 2009 10:24:20 +0100 Received: from localhost (data.hosts.roeleveld.co.uk [127.0.0.1]) by data.hosts.roeleveld.co.uk (Postfix) with ESMTP id 8994F8D5 for ; Fri, 13 Feb 2009 10:24:39 +0100 (CET) X-Virus-Scanned: amavisd-new at roeleveld.co.uk Received: from data.hosts.roeleveld.co.uk ([127.0.0.1]) by localhost (data.hosts.roeleveld.co.uk [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id UhoK5pRvKMej for ; Fri, 13 Feb 2009 10:24:34 +0100 (CET) Received: from www.antarean.org (unknown [10.1.2.50]) by data.hosts.roeleveld.co.uk (Postfix) with ESMTP id 041753BF for ; Fri, 13 Feb 2009 10:24:34 +0100 (CET) Received: from 10.1.4.14 (SquirrelMail authenticated user joost) by www.antarean.org with HTTP; Fri, 13 Feb 2009 10:24:34 +0100 (CET) Message-ID: In-Reply-To: <499517F5.1090003@caf.com.tr> References: <20090213005343.GC4577@ca.inter.net> <9951CF8D-E681-4180-93ED-F89B67D26F59@stellar.eclipse.co.uk> <499517F5.1090003@caf.com.tr> Date: Fri, 13 Feb 2009 10:24:34 +0100 (CET) Subject: Re: [gentoo-user] Commenting out multiple lines in vim From: "Joost Roeleveld" To: gentoo-user@lists.gentoo.org User-Agent: SquirrelMail/1.4.16 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 Content-Type: text/plain;charset=UTF-8 X-Priority: 3 (Normal) Importance: Normal Content-Transfer-Encoding: quoted-printable X-ZiggoSMTP-MailScanner-Information: Please contact the ISP for more information X-ZiggoSMTP-MailScanner-ID: 1LXuHU-0000Uo-Ro X-ZiggoSMTP-MailScanner: Found to be clean X-ZiggoSMTP-MailScanner-SpamCheck: not spam, SpamAssassin (not cached, score=-0.085, required 5, BAYES_40 -0.18, RDNS_NONE 0.10) X-ZiggoSMTP-MailScanner-From: joost@antarean.org X-Spam-Status: No X-Archives-Salt: a357583c-1993-4f89-b726-173ba40efe8d X-Archives-Hash: 2f22f3bbd9dbb901664f8fe7434b5653 On Fri, February 13, 2009 7:49 am, Eray Aslan wrote: > 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 o= ne >> could find it so. >> >> Is it only on my keyboard that forward-slash is a "lower-case" charact= er >> 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. True, but with this method, you don't use the mouse, just the keyboard: 1) Go to first line 2) Press +V 3) go to last line 4) Press 5) Press +I 6) Press '#' 7) Press On my system I then need to move the cursor to actually see the change, i= s this normal? -- Joost