LinuxQuestions.org
Help answer threads with 0 replies.
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 02-03-2009, 05:04 AM   #1
Panci
LQ Newbie
 
Registered: Nov 2005
Location: Italy
Distribution: Slackware 12.1
Posts: 22

Rep: Reputation: 0
xfce vim and clipboard


Hi,

I'm using Slackware 12.1 with xfce.I use vim inside a gnome-terminal and I'm triyng to understand how to get/set some text from/to the xclipboard with a shortcut or macro in vim.

I've already try with the clipboard and guioption=a options in vim and copy the text int the + reg but it dosent work.

In general I would like to get/set the value of the clipboard trough the shell or accessing it within some kind of script/code??

How can I do it I google in the net but I don't really understand how it works.....

Can someone help me???

Thanks
 
Old 02-03-2009, 10:00 PM   #2
astrogeek
Moderator
 
Registered: Oct 2008
Distribution: Slackware [64]-X.{0|1|2|37|-current} ::12<=X<=15, FreeBSD_12{.0|.1}
Posts: 6,269
Blog Entries: 24

Rep: Reputation: 4206Reputation: 4206Reputation: 4206Reputation: 4206Reputation: 4206Reputation: 4206Reputation: 4206Reputation: 4206Reputation: 4206Reputation: 4206Reputation: 4206
If I understand correctly, you want to copy and paste to/from vim.

Simply edit /usr/share/vim/vimrc,
comment out

set mouse=a (using " comment)

"set mouse=a

That should do it on most systems.
 
Old 02-05-2009, 07:31 PM   #3
grissiom
Member
 
Registered: Apr 2008
Location: China, Beijing
Distribution: Slackware
Posts: 423

Rep: Reputation: 45
Besides, if you don't want to touch system configuration, you can add a line to your ~/.vimrc
Code:
set mouse=r
 
Old 02-06-2009, 03:22 AM   #4
Panci
LQ Newbie
 
Registered: Nov 2005
Location: Italy
Distribution: Slackware 12.1
Posts: 22

Original Poster
Rep: Reputation: 0
ok thanks
 
  


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
How to copy and paste things between vim and system clipboard grissiom Slackware 43 09-30-2013 02:23 AM
VIM Users: Do you use VIM via console or gui? JMJ_coder Linux - General 48 04-16-2008 03:12 AM
LXer: Vim tips: Using Vim mappings and abbreviations LXer Syndicated Linux News 0 06-18-2006 01:54 PM
LXer: Cream for Vim - Making Vim more user friendly LXer Syndicated Linux News 0 06-17-2006 11:54 PM
XFCE 4.0.1 & vim fr0zen Linux - Software 2 12-11-2003 02:23 PM

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

All times are GMT -5. The time now is 12:24 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