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 1LYDbb-000195-Ht for garchives@archives.gentoo.org; Sat, 14 Feb 2009 06:02:23 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 50708E052C; Sat, 14 Feb 2009 06:02:22 +0000 (UTC) Received: from smtpout.karoo.kcom.com (smtpout.karoo.kcom.com [212.50.160.34]) by pigeon.gentoo.org (Postfix) with ESMTP id D89BFE052C for ; Sat, 14 Feb 2009 06:02:21 +0000 (UTC) X-IronPort-AV: E=Sophos;i="4.38,204,1233532800"; d="scan'208";a="73220157" Received: from unknown (HELO compaq.stroller.uk.eu.org) ([213.152.39.90]) by smtpout.karoo.kcom.com with ESMTP; 14 Feb 2009 06:02:20 +0000 Received: from [192.168.1.71] (unknown [192.168.1.71]) by compaq.stroller.uk.eu.org (Postfix) with ESMTP id 24048137B72 for ; Sat, 14 Feb 2009 06:02:19 +0000 (GMT) Message-Id: From: Stroller To: gentoo-user@lists.gentoo.org In-Reply-To: <3ac129340902132103v116aa930ra17f30dd5aa74c3@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 06:02:14 +0000 References: <3ac129340902132021u704eba0bx76311db6a8f43535@mail.gmail.com> <3ac129340902132103v116aa930ra17f30dd5aa74c3@mail.gmail.com> X-Mailer: Apple Mail (2.930.3) X-Archives-Salt: ee5e12c6-cc3d-4917-a02e-492cfb7de2fb X-Archives-Hash: c3de24d89de004c756fa516430ba11ec On 14 Feb 2009, at 05:03, daid kahl wrote: >>> >>> 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". > > Haha, either one. I guess ideally it would be neat to be able to > copy from Konsole without using the mouse at all, but I'd settle for > mouse highlight and keystroke. Since I use a laptop with a > touchpad, the highlighting isn't a huge hand motion away from the > keyboard. Though, strtictly speaking, this thread is on vim, and I > like to copy from vim more than Konsole anyway (except for like > compile bugs, which I guess I could access through vim and the log > files). I can certainly answer copying using mouse but without needing to click. I started to write this before I realised the other possibility: IMO terminal emulators should copy on selection, as was the traditional X11 style. This is clearly undesirable behaviour in most any other application - in a word-processor or email program you may want to highlight a selection of text which you want to paste over, and it's no use trying that when doing so overwrites the clipboard - but that doesn't ever apply to terminal applications. Surely Konsole should offer a copy-upon-selection option? I then realised that it was daft to ask this question without Googling it and quickly found this thread: http://forums.whirlpool.net.au/forum-replies-archive.cfm/718984.html The last post gives the answer, I think. It must surely be possible to access the clipboard API at the command line & create a vim command that passes the highlighted text to it, but I have no idea how. Stroller.