Slackware This Forum is for the discussion of Slackware Linux.
|
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
01-03-2014, 05:26 AM
|
#1
|
MLED Founder
Registered: Jun 2011
Location: Montpezat (South France)
Distribution: CentOS, OpenSUSE
Posts: 3,453
|
Slackware 14.1: copy/paste with Vim in Xfce Terminal
Hi,
I'm running Slackware64 14.1 + Xfce on my main workhorse PC. I've noticed an annoying change in Vim's behaviour, or maybe it's Xfce's terminal. I can't seem to copy/paste text from another application into Vim. Right now I have Firefox open, and I want to copy/paste text from a webpage into Vim. There's no way to do this.
Anyone knows what's wrong?
|
|
|
01-03-2014, 07:09 AM
|
#2
|
Senior Member
Registered: Oct 2003
Location: Northeastern Michigan, where Carhartt is a Designer Label
Distribution: Slackware 32- & 64-bit Stable
Posts: 3,541
|
It works for me (64-bit, 14.1, Xfce). I just highlight a bunch of text in some other window, do insert in vim, center click and there it is (sometimes I do have to right click in the source and copy then right click and paste in vim, though, don't know why that is).
I do that sort of thing all the time between Google search and Google Translate then copy-paste into the editor without any problem. The only thing that's goofy now an again is that because I always have autoindent set in ~/.exrc and that can get messy but otherwise no problems.
|
|
|
01-03-2014, 08:20 AM
|
#3
|
Member
Registered: Nov 2013
Location: Antalya
Distribution: Slackware64 current
Posts: 119
Rep:
|
No problems, here. Vim ver: 7.4.50, 14-1 64bit.
|
|
|
01-03-2014, 09:25 AM
|
#4
|
LQ Guru
Registered: Jun 2003
Location: Virginia
Distribution: Slackware = Main OpSys
Posts: 5,058
|
This is slightly Off Topic but should be of considerable interest to those who love VIM.
http://www.youtube.com/watch?feature...&v=aHm36-na4-4
I had read that Stallman surfs the web with Emacs but I still had no idea just how powerful and varied vim can be even after more than 10 years experience. Enjoy!
Last edited by enorbet; 01-03-2014 at 09:26 AM.
|
|
1 members found this post helpful.
|
01-03-2014, 10:31 AM
|
#5
|
Member
Registered: Apr 2011
Location: British Columbia, Canada
Posts: 304
Rep: 
|
If you are using gvim/qvim, you can use 'p' to paste when you have:
Code:
set clipboard=unnamed
|
|
|
01-03-2014, 11:12 AM
|
#6
|
Member
Registered: May 2004
Distribution: Slackware
Posts: 215
Rep:
|
If you're trying to use 'p' or 'P' to paste from the clipboard ("+) into Vim running in the terminal window, you'll need to rebuild Vim to be X-aware by removing the --without-x option in vim.SlackBuild. That is, replace
Code:
config_vim --without-x --disable-gui
with
Code:
config_vim --disable_gui
This isn't new with 14.1, though.
Dave
|
|
|
01-03-2014, 11:57 AM
|
#7
|
Member
Registered: Apr 2011
Location: California, USA
Distribution: Slackware
Posts: 528
|
Use Window Edit Functions
This doesn't answer your question, but just some information on how I handle it....
I find that keyboard commands sometimes don't work when copying from a graphics application and pasting into VIM. If I use COPY from the EDIT menu found in most graphic applications, then use the PASTE selection of the EDIT menu in the Xfce Terminal Emulator it works 99%-100% of the time.
Before I paste into VIM I open a new line for input ('o' command) then do the paste.
I don't copy/paste very many times a week so this process works for me. Because I'm using this "window menu based solution" I haven't noticed any changes that may have occurred in the last couple of years. I'm currently using Slack64-14.0.
EDIT: You may want to try the copy/paste on different web pages in case the problem is just with one site. I believe a web page can be constructed to make text unselectable. For example, the old trick of placing a single transparent pixel on top of an item on the page.
Last edited by TracyTiger; 01-03-2014 at 12:28 PM.
Reason: Web Page Restrictions
|
|
|
01-03-2014, 05:16 PM
|
#8
|
Member
Registered: Jun 2010
Distribution: Slackware Current 64 bit KDE 5
Posts: 380
Rep:
|
in XFCE terminal you'll need to press shift+ctrl+v in order to paste. Or right click and select paste.
|
|
1 members found this post helpful.
|
01-03-2014, 08:06 PM
|
#9
|
LQ Guru
Registered: Nov 2003
Location: Canada
Distribution: distro hopper
Posts: 11,352
|
The first thing I do in a new Slackware installation is rebuild vim with the "--with-x" flag. And with Ruby support.
|
|
|
01-04-2014, 03:44 AM
|
#10
|
MLED Founder
Registered: Jun 2011
Location: Montpezat (South France)
Distribution: CentOS, OpenSUSE
Posts: 3,453
Original Poster
|
Quote:
Originally Posted by Bertman123
in XFCE terminal you'll need to press shift+ctrl+v in order to paste. Or right click and select paste.
|
Right click context menu seems to be deactivated in Vim. But the keyboard shortcut worked!
Thanks very much everybody. Problem solved.
|
|
|
All times are GMT -5. The time now is 10:06 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|