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 1LYCIv-0003Pt-J7 for garchives@archives.gentoo.org; Sat, 14 Feb 2009 04:39:01 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id EBB10E0572; Sat, 14 Feb 2009 04:38:58 +0000 (UTC) Received: from smtpout.karoo.kcom.com (smtpout.karoo.kcom.com [212.50.160.34]) by pigeon.gentoo.org (Postfix) with ESMTP id 86C54E0572 for ; Sat, 14 Feb 2009 04:38:58 +0000 (UTC) X-IronPort-AV: E=Sophos;i="4.38,204,1233532800"; d="scan'208";a="70869320" Received: from unknown (HELO compaq.stroller.uk.eu.org) ([213.152.39.90]) by smtpout.karoo.kcom.com with ESMTP; 14 Feb 2009 04:38:57 +0000 Received: from [192.168.1.71] (unknown [192.168.1.71]) by compaq.stroller.uk.eu.org (Postfix) with ESMTP id E577E137BD1 for ; Sat, 14 Feb 2009 04:38:55 +0000 (GMT) Message-Id: From: Stroller To: gentoo-user@lists.gentoo.org In-Reply-To: <3ac129340902132021u704eba0bx76311db6a8f43535@mail.gmail.com> 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] Re: Commenting out multiple lines in vim Date: Sat, 14 Feb 2009 04:38:49 +0000 References: <3ac129340902132021u704eba0bx76311db6a8f43535@mail.gmail.com> X-Mailer: Apple Mail (2.930.3) X-Archives-Salt: 113da698-e85d-4ddc-81c8-328199f19de1 X-Archives-Hash: 1765814efb273b4d8fcb21cf8ab939ac On 14 Feb 2009, at 04:21, daid kahl wrote: > You can also enable line numbering, either in command mode using > "set nu", or in ~/.vimrc (which I prefer since I always like line > numbers, except if I'm copy and pasting...then it's annoying). > There is also a macro I made (stole from somewhere and modified) to > enter the date on \d entered in both command mode and entry mode, > which I find handy for journals or timestamp comments in code. You > can, of course, rearrange and edit how the time appears if you > dislike my style. > > "Timestamp script for command (normal) mode > nmap \d :execute "normal i" . strftime("%d %b %Y %H:%M:%S ") > "Timestamp script for insert mode > imap \d =strftime("%d %b %Y %H:%M:%S ") Thanks for the tips. I don't have immediate need for them, but I will bear them in mind. > Is there any way to access the vim buffers from other than vi? > Using Konsole, if I want to copy something from vim I have to > highlight with the mouse and right click, which is annoying. I > really just want a better way to copy from Konsole that doesn't > involve right click. At least shift+insert works for pasting from > elsewhere... Do you want to copy without using right-click (i.e. copy upon mouse select) or copy without using the mouse at all? I assume the latter, but that was not my initial reaction when I read "I really just want a better way ... that doesn't involve right click". Stroller.