Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
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.
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.
konsole: I'm supposed to start up that bloatware-monster just to use a console?
gnome-terminal: I don't have it.
Besides, I tried konsole, I can't copy and paste properly (middle mouse button) within vim there either. The issue does not seem to be related to the choice in terminal emulator.
Besides, I tried konsole, I can't copy and paste properly (middle mouse button) within vim there either.
If I right click on selected text in a gnome-terminal running on Cygwin/X, I can copy to the clipboard.
The middle button just seems to copy and then immediately paste. For the particular string I am using, it means that when it reaches the "a" character in the string, vi goes into insert mode and writes the rest of the string into the buffer.
I think you are trying to do something that is inherently impossible: Use X windows commands in a program that does not understand them. That is why I recommended gvim: It supports the X protocol.
By "copy and paste" I mean: Highlight arbitrary text by clicking and holding down the left mouse button while highlighting the desired text, release left mouse button -- text will stay highlighted. Move cursor to desired output area (i.e. where to 'paste' said text), click once middle mouse button, the text has now been copy and pasted.
This already works fine in the terminals I use. However if and only if (so far) I have vim running in one of the terminals (which copy and paste works in) this makes copy and paste NOT work.
Now, copy and pasting text such as C code into vim doesn't work without making bad formatting on the text, that requires the :set paste/:set nopaste to look perfect, I'm aware of that, but I'm not talking about that -- I'm talking about the fact that copy and paste doesn't work at all as long as vim runs in one of my terminals.
Please stop talking about gvim -- it has nothing to do with this issue.
Very important: This has worked perfectly fine over the past 10 years, it has only started to be an issue now.
My system is Slackware 12.2 with vim 7.2, X.Org X server 1.4.2, and XFCE 4.4.3.
Either this is a bug of some sort or there is a very trivial solution.
Very important: This has worked perfectly fine over the past 10 years, it has only started to be an issue now.
I don't see how it can possibly work. The only way you can insert text into vim is when it is in insert mode. If you copy the text while it is in command mode, how do you put it in insert mode without doing something extra?
Also, the only way to move the cursor in vim is to use the command mode keys or search or other commands that move the cursor. How is your X windows paste command supposed to do that?
I don't see how it can possibly work. The only way you can insert text into vim is when it is in insert mode. If you copy the text while it is in command mode, how do you put it in insert mode without doing something extra?
Also, the only way to move the cursor in vim is to use the command mode keys or search or other commands that move the cursor. How is your X windows paste command supposed to do that?
Are you serious?
I have used vi/vim for over 10 years, I'm fully aware of the differences between the various modes of vi/vim.
I obviously enter insert mode manually before I paste the desired text.
I have to agree with posix_memalign for two reasons.
1. I have used copy/paste with middle mouse button in terminalbased vim for years.
2. I am facing the same problem that it does not work correctly.
I am using kubuntu 8.04 KDE4 and right now I am pasting a "T" all the time instead of pasting the selected text.
The odd thing is that sometimes it works perfectly. I tried changing settings in klipper but that didn't help. Stopping klipper didn't help aswell.
So please let me know if anyone has a solution to this problem.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.