DaemonForums  

Go Back   DaemonForums > OpenBSD > OpenBSD Packages and Ports

OpenBSD Packages and Ports Installation and upgrading of packages and ports on OpenBSD.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 3 Weeks Ago
wheelnut wheelnut is offline
Real Name: Michael
Port Guard
 
Join Date: Apr 2022
Location: Canada
Posts: 24
Question Can't coppy-paste from vim to gedit

Greetings, I both hope the solution to this is trivial, and non-trivial. ..and that this question is in the right place..

Following the instructions https://unix.stackexchange.com/quest...ternal-program, I am unable to copy a selection of text from vim into gedit.

I have checked that my fresh install of vim from pkg_add "includes" +xterm_clipboard (-and- +clipboard), and I have, in principle, learned how to use the vim "visual" mode.

Code:
"+y
does not work, either -in- visual mode, or in normal mode after I have quit visual mode, which apparently you are supposed to do. If instead I do, -in- visual mode:

Code:
:"+y
..at least I can see where I am entering the '"+y', but the copy-paste to gedit still doesn't work.

..could this be functionality that has been implemented in gnu/linux, for example, but has not been ported yet to open-BSD? I really really doubt it, but if not that, what?

..I am using cwm.. ..and loving it! :-D

..for context, what I am -trying- to do is take notes on the configuration changes I'm making. whether I copy sections of code from vim to gedit or somewhere else I suppose doesn't matter. the changes just need to get off the computer so when/if I end up re-installing, the whole process will be easier. :-)

Having reflected a few minutes more, I realize I -could- simply take the whole file and save it to a usb-key. That said, I -am- curious as to why this thing, that apparently is supposed to work, seems not to. :-)

I finally realized I could just open the file in gedit directly, and copy-paste the changes from there. It -would- seem convenient though to just have an editor open with my "notes" file, and copy-paste over to it as I figure out what works.

Last edited by wheelnut; 3 Weeks Ago at 07:20 PM.
Reply With Quote
  #2   (View Single Post)  
Old 3 Weeks Ago
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 8,100
Default

You've posted this in a FreeBSD subforum, rather than one for OpenBSD.

Disclaimer: I don't use gedit, and vim I only use rarely -- I use gvim for Unicode text editing.

With that disclaimer out of the way, I can copy / paste between text in graphical and non-graphical apps, such as the built-in vi(1) editor and firefox. This may be because I have the autocutsel package installed.
Code:
$ pkg_info autocutsel
Information for inst:autocutsel-0.10.1

Comment:
keep X clipboard and cutbuffer in sync

Description:
Autocutsel tracks changes in the server's cutbuffer and CLIPBOARD
selection. When the CLIPBOARD is changed, it updates the cutbuffer.
When the cutbuffer is changed, it owns the CLIPBOARD selection. The
cutbuffer and CLIPBOARD selection are always synchronized.

Maintainer: Jeremie Courreges-Anglas [email redacted]

WWW: https://www.nongnu.org/autocutsel/
Reply With Quote
  #3   (View Single Post)  
Old 3 Weeks Ago
wheelnut wheelnut is offline
Real Name: Michael
Port Guard
 
Join Date: Apr 2022
Location: Canada
Posts: 24
Default

Quote:
Originally Posted by jggimi View Post
You've posted this in a FreeBSD subforum, rather than one for OpenBSD.
Woops. I -am- aware that these two forums exist, and I -was- trying to put it in the right place. sigh. I guess I was so focused on putting it in the right sub-forum, that I forgot about the correct -main- forum. If I knew how to move it to the right place, I would.

With that clarified, I'll try out your solution.
Reply With Quote
  #4   (View Single Post)  
Old 3 Weeks Ago
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 8,100
Default

After installing, be sure to review /usr/local/share/doc/autocutsel/README. I happen to have two instances provisioned in my .xsession:
Code:
autocutsel -fork &
autocutsel -selection PRIMARY -fork &
Reply With Quote
  #5   (View Single Post)  
Old 3 Weeks Ago
wheelnut wheelnut is offline
Real Name: Michael
Port Guard
 
Join Date: Apr 2022
Location: Canada
Posts: 24
Default

So far, no dice. I have your suggestions in my .xsession, and I have re-launched the cwm, so they should be "active". That doesn't mean your suggestion isn't necessary. ..I think the next thing I'll try is gvim, like you. At least one person at the original link claims that this is necessary, as of 2023.
Reply With Quote
  #6   (View Single Post)  
Old 3 Weeks Ago
wheelnut wheelnut is offline
Real Name: Michael
Port Guard
 
Join Date: Apr 2022
Location: Canada
Posts: 24
Default

Linked to OpenBSD forum.
Reply With Quote
  #7   (View Single Post)  
Old 3 Weeks Ago
wheelnut wheelnut is offline
Real Name: Michael
Port Guard
 
Join Date: Apr 2022
Location: Canada
Posts: 24
Default

gvim is not available as an openbsd package. I don't know enough about ports yet to be sure it isn't available that way.

-not quite.. it seems to be there, but not as a stand-alone. many many options...
Reply With Quote
  #8   (View Single Post)  
Old 3 Weeks Ago
wheelnut wheelnut is offline
Real Name: Michael
Port Guard
 
Join Date: Apr 2022
Location: Canada
Posts: 24
Default

..still nothing. probably time to let the openbsd people respond.
Reply With Quote
  #9   (View Single Post)  
Old 3 Weeks Ago
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 8,100
Default

$ pkg_info -L vim | grep gvim
Reply With Quote
Reply

Tags
vim

Thread Tools
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
a copy-paste bug in opera 12.15 build 1748 pawaan NetBSD General 2 16th October 2013 06:07 PM
is there a way to cut and paste text from xterm ? daemonfowl OpenBSD General 6 30th January 2012 08:03 PM
X-Window style copy&paste in MS Windows? Carpetsmoker Other OS 11 16th October 2008 10:43 AM
Cut and Paste with aterm revzalot OpenBSD General 6 13th August 2008 11:18 PM
Should be easy.... Keyboard copy n paste WeakSauceIII OpenBSD General 4 11th May 2008 07:32 PM


All times are GMT. The time now is 10:12 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick