LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 05-27-2013, 01:08 PM   #1
Stephen Morgan
Member
 
Registered: Feb 2011
Location: England
Distribution: Slackware
Posts: 164

Rep: Reputation: 19
Middle-click pasting from X clipboard into vim in xterm doesn't work


Going through different terminals, it works in terminator (terminator-0.96-x86_64-1sl), but not in Xterm (which I prefer), and not in terminology, xfce4-terminal, Konsole, aterm, nor rxvt. What makes it work in terminator I don't know.

It does work to paste into vi (or nano) through middle-click, just not through vim. Vim pastes from the internal clipboard rather than the X clipboard.

It also works through using Shift-Ins to paste. Just not middle click.

I just so happens that I prefer pasting through middle-click, and using vim and Xterm, the only combination that doesn't work.
 
Old 05-27-2013, 01:23 PM   #2
san
Member
 
Registered: Jan 2006
Location: vienna, .at
Distribution: Slackware64 13.37
Posts: 50

Rep: Reputation: 12
try "set mouse=a" (or was it "set mouse=r"?)

if it works, save it in your ~./vimrc
 
Old 05-27-2013, 03:07 PM   #3
Alien Bob
Slackware Contributor
 
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 8,559

Rep: Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106
Try Shift-Middleclick.

Eric
 
Old 05-28-2013, 01:18 AM   #4
Stephen Morgan
Member
 
Registered: Feb 2011
Location: England
Distribution: Slackware
Posts: 164

Original Poster
Rep: Reputation: 19
Quote:
Originally Posted by san View Post
try "set mouse=a" (or was it "set mouse=r"?)

if it works, save it in your ~./vimrc
It's "r", and works, thanks.

Shift-middle click also works, but doing it one-handed on a laptop touchpad is slightly more difficult.
 
Old 05-28-2013, 11:06 AM   #5
David the H.
Bash Guru
 
Registered: Jun 2004
Location: Osaka, Japan
Distribution: Arch + Xfce
Posts: 6,852

Rep: Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037
It's generally more efficient to access the x-selection through the "*" register anyway. Use "*p to paste the contents into your current buffer, for example. The "+" buffer is similarly available for the clipboard.
 
1 members found this post helpful.
Old 05-28-2013, 04:16 PM   #6
T3slider
Senior Member
 
Registered: Jul 2007
Distribution: Slackware64-14.1
Posts: 2,367

Rep: Reputation: 843Reputation: 843Reputation: 843Reputation: 843Reputation: 843Reputation: 843Reputation: 843
Quote:
Originally Posted by David the H. View Post
It's generally more efficient to access the x-selection through the "*" register anyway. Use "*p to paste the contents into your current buffer, for example. The "+" buffer is similarly available for the clipboard.
Slackware's vim is compiled with --without-x, so "*p will only work in gvim and not regular vim (unless you recompile it).
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Touchpad (Alps, driver synaptics, Slackware 13): middle button click doesn't work giberg Slackware 10 11-06-2011 10:58 AM
Disable xorg's "highlight to copy, middle click to paste" clipboard tromboneman Linux - Newbie 1 06-08-2008 11:53 AM
vim won't paste on middle click anymore slackhack Linux - General 4 07-01-2007 11:09 PM
binding key combination to middle click? (pasting in urxvt) pilot1 Linux - Desktop 0 03-02-2007 06:56 PM
Gnumeric: Middle click doesn't work SupermanReturns Linux - Software 2 08-02-2006 10:50 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 08:27 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration