LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This 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


Reply
  Search this Thread
Old 07-25-2007, 09:11 PM   #1
JosephS
Member
 
Registered: Jun 2007
Distribution: Debian Jessie, Bunsenlabs
Posts: 586

Rep: Reputation: 38
can't paste into vim


Using Slackware 12
I can't paste text into vim. I have the setting: set paste.

It indicates at the bottom of the screen: INSERT(paste), but it turns to insert (VISUAL) when I try to paste in text.

Thanks
 
Old 07-26-2007, 12:53 AM   #2
bijit1709
Member
 
Registered: Oct 2006
Location: Costa Rica, Escazu
Distribution: Slackware 12.0 (2.6.21.5)
Posts: 67

Rep: Reputation: 15
Hi,

What you have to do is hold "Shift" and then paste.
 
Old 07-26-2007, 05:36 AM   #3
ramesh6056
Member
 
Registered: May 2007
Posts: 89

Rep: Reputation: 15
Re...

shift+Insert
 
Old 07-26-2007, 09:11 AM   #4
sleepyEDB
Member
 
Registered: Dec 2005
Location: /USA/MI/Detroit/home
Distribution: MEPIS, antiX, RHEL
Posts: 105

Rep: Reputation: 15
Thumbs up

Quote:
Originally Posted by bijit1709
Hi,

What you have to do is hold "Shift" and then paste.
Thanks, this worked for me. Not being able to paste from other apps into vim had been driving me nuts for a while now!

To add:
  • I don't have the 'set paste' option in my .vimrc and this still works
  • You can also click your middle mouse button to act as the 'paste' command (assuming your mouse is set up to paste when the middle button is clicked)
sleepy
 
Old 07-26-2007, 08:28 PM   #5
JosephS
Member
 
Registered: Jun 2007
Distribution: Debian Jessie, Bunsenlabs
Posts: 586

Original Poster
Rep: Reputation: 38
Thanks for your help. When I used Ubuntu I just used the method I mentioned in the post and that's what I found in the vimbook.
 
Old 04-01-2008, 04:05 PM   #6
f000l
LQ Newbie
 
Registered: Mar 2008
Location: Sweden
Distribution: Slackware 13.0
Posts: 14

Rep: Reputation: 0
I just reinstalled slack12 on my comp, and pasting with Right mouse button(in vim) stopped working :/

I don't know what has changed, i use the same version of Vim and same vimrc, but i still can't paste with right mousebutton.

When i press right mouse button the --INSERT-- changes to --(insert) VISUAL -- instead of pasting.

What have i done wrong?

EDIT: I know i can press Shift+mouse2, but i didn't have to do so before...

EDIT2: Oh, finally found a solution... Just had to add "set mouse-=a" into my vimrc.

Last edited by f000l; 04-01-2008 at 05:41 PM.
 
Old 11-17-2009, 01:25 PM   #7
zomane
Member
 
Registered: Sep 2005
Location: Austria
Distribution: Debian, CentOS, OpenBSD, FreeBSD
Posts: 52

Rep: Reputation: 16
Its not too good to bump that old thread, but this problem makes me crazy and today I finally found a sollution, hope this will helps to other people with same problem.

This thing happens in my case on slackware 12.1 and slackware 13.0 x86_64 .

Its almost the same as that that f000l says, but in my case setting
PHP Code:
set mouse
in .vimrc solved issue, with set mouse=a problem still exists.
 
Old 01-03-2010, 04:26 AM   #8
cola
Senior Member
 
Registered: Sep 2007
Posts: 1,045

Rep: Reputation: 65
Quote:
Originally Posted by JosephS View Post
Thanks for your help. When I used Ubuntu I just used the method I mentioned in the post and that's what I found in the vimbook.
Post:
Code:
set mouse
And mark this thread as [SOLVED] if it's solved.This option is under the "Thread Tools" above.
 
1 members found this post helpful.
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
vim won't paste on middle click anymore slackhack Linux - General 4 07-01-2007 11:09 PM
How to copy paste into VIM ? EAD Linux - Software 15 12-12-2006 06:38 PM
Cut and Paste from vim (not Gvim) into a windowed app richardq Linux - Newbie 2 10-11-2006 04:51 PM
Buggy copy n paste with vim in terminal Kovacs Slackware 1 09-05-2006 12:13 AM
cygwin vim copy/paste problem takahaya Linux - Software 2 03-31-2006 01:16 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 06:38 PM.

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