Jump to content


Photo

Clipbord in vim


  • Please log in to reply
10 replies to this topic

#1 eura

  • Senior Member
  • 83 posts

+5
Neutral

Posted 22 January 2024 - 17:50

I notes that vim is missing a nice feature I think that vim is compiling with xterm_clipboard option instead of +clipboard, it means that it can only interact with the clipboard using the * and + registers. These registers are not the same as the system clipboard, but they can be used to exchange data between Vim and other applications.

That means that you need to switch between Insert and visual mode to copy inside vim. Is it possible to fix this I think it nice if you can copy / paste the same way inside Vim as outside and Linux / Windows that means you just set copy and paste shortcuts in the terminal.

P.S I made this changes in my .vimrc

set clipboard=unnamedplus
set clipboard+=unnamed
vnoremap <C-c> "+y
nnoremap <C-v> "+p

But it will not fix this issue

 



Re: Clipbord in vim #2 WanWizard

  • PLi® Core member
  • 70,546 posts

+1,813
Excellent

Posted 22 January 2024 - 19:00

By default the vi in the image is the busybox version, which is stripped of most functionality.

 

You can install the full-fat one using

opkg update && upkg install vim

Currently in use: VU+ Duo 4K (2xFBC S2), VU+ Solo 4K (1xFBC S2), uClan Usytm 4K Ultimate (S2+T2), Octagon SF8008 (S2+T2), Zgemma H9.2H (S2+T2)

Due to my bad health, I will not be very active at times and may be slow to respond. I will not read the forum or PM on a regular basis.

Many answers to your question can be found in our new and improved wiki.


Re: Clipbord in vim #3 eura

  • Senior Member
  • 83 posts

+5
Neutral

Posted 22 January 2024 - 21:24

Thank you forgot to say I'm using vim not vi i have install vim 8.1.1518 and 8.2.4524 still the same



Re: Clipbord in vim #4 WanWizard

  • PLi® Core member
  • 70,546 posts

+1,813
Excellent

Posted 22 January 2024 - 21:35

Then no idea, I don't use vim myself.


Currently in use: VU+ Duo 4K (2xFBC S2), VU+ Solo 4K (1xFBC S2), uClan Usytm 4K Ultimate (S2+T2), Octagon SF8008 (S2+T2), Zgemma H9.2H (S2+T2)

Due to my bad health, I will not be very active at times and may be slow to respond. I will not read the forum or PM on a regular basis.

Many answers to your question can be found in our new and improved wiki.


Re: Clipbord in vim #5 Pr2

  • PLi® Contributor
  • 6,182 posts

+261
Excellent

Posted 23 January 2024 - 21:34

Perform the following command:

touch ~/.vimrc

This should fix your problem. I had the same issue in Debian and the command fix my problem.


NO SUPPORT by PM, it is a forum make your question public so everybody can benefit from the question/answer.
If you think that my answer helps you, you can press the up arrow in bottom right of the answer.

Wanna help with OpenPLi Translation? Please read our Wiki Information for translators

Sat: Hotbird 13.0E, Astra 19.2E, Eutelsat5A 5.0W
VU+ Solo 4K: 2*DVB-S2 + 2*DVB-C/T/T2 (used in DVB-C) & Duo 4K: 2*DVB-S2X + DVB-C (FBC)

AB-Com: PULSe 4K 1*DVB-S2X (+ DVB-C/T/T2)
Edision OS Mio 4K: 1*DVB-S2X + 1*DVB-C/T/T2
 


Re: Clipbord in vim #6 WanWizard

  • PLi® Core member
  • 70,546 posts

+1,813
Excellent

Posted 24 January 2024 - 12:00

Let me know if it does, then we can update the build recipe to include this.


Currently in use: VU+ Duo 4K (2xFBC S2), VU+ Solo 4K (1xFBC S2), uClan Usytm 4K Ultimate (S2+T2), Octagon SF8008 (S2+T2), Zgemma H9.2H (S2+T2)

Due to my bad health, I will not be very active at times and may be slow to respond. I will not read the forum or PM on a regular basis.

Many answers to your question can be found in our new and improved wiki.


Re: Clipbord in vim #7 Pr2

  • PLi® Contributor
  • 6,182 posts

+261
Excellent

Posted 24 January 2024 - 17:27

Full explanation here:

 

https://linuxtutoria...te-not-working/


NO SUPPORT by PM, it is a forum make your question public so everybody can benefit from the question/answer.
If you think that my answer helps you, you can press the up arrow in bottom right of the answer.

Wanna help with OpenPLi Translation? Please read our Wiki Information for translators

Sat: Hotbird 13.0E, Astra 19.2E, Eutelsat5A 5.0W
VU+ Solo 4K: 2*DVB-S2 + 2*DVB-C/T/T2 (used in DVB-C) & Duo 4K: 2*DVB-S2X + DVB-C (FBC)

AB-Com: PULSe 4K 1*DVB-S2X (+ DVB-C/T/T2)
Edision OS Mio 4K: 1*DVB-S2X + 1*DVB-C/T/T2
 


Re: Clipbord in vim #8 eura

  • Senior Member
  • 83 posts

+5
Neutral

Posted 24 January 2024 - 20:19

Thank you but sorry to inform that a have vimrc

 

root@vuultimo4k:~# cat .vimrc

 

 
set clipboard=unnamedplus
set clipboard+=unnamed
vnoremap <C-c> "+y
nnoremap <C-v> "+p

I think compiling vim with xterm_clipboard option instead of +clipboard will sole this problem??


Edited by eura, 24 January 2024 - 20:21.


Re: Clipbord in vim #9 WanWizard

  • PLi® Core member
  • 70,546 posts

+1,813
Excellent

Posted 24 January 2024 - 21:18

xterm_clipboard requires X11, which isn't available on the box.


Currently in use: VU+ Duo 4K (2xFBC S2), VU+ Solo 4K (1xFBC S2), uClan Usytm 4K Ultimate (S2+T2), Octagon SF8008 (S2+T2), Zgemma H9.2H (S2+T2)

Due to my bad health, I will not be very active at times and may be slow to respond. I will not read the forum or PM on a regular basis.

Many answers to your question can be found in our new and improved wiki.


Re: Clipbord in vim #10 Pr2

  • PLi® Contributor
  • 6,182 posts

+261
Excellent

Posted 25 January 2024 - 10:31

Please test with an empty .vimrc


NO SUPPORT by PM, it is a forum make your question public so everybody can benefit from the question/answer.
If you think that my answer helps you, you can press the up arrow in bottom right of the answer.

Wanna help with OpenPLi Translation? Please read our Wiki Information for translators

Sat: Hotbird 13.0E, Astra 19.2E, Eutelsat5A 5.0W
VU+ Solo 4K: 2*DVB-S2 + 2*DVB-C/T/T2 (used in DVB-C) & Duo 4K: 2*DVB-S2X + DVB-C (FBC)

AB-Com: PULSe 4K 1*DVB-S2X (+ DVB-C/T/T2)
Edision OS Mio 4K: 1*DVB-S2X + 1*DVB-C/T/T2
 


Re: Clipbord in vim #11 eura

  • Senior Member
  • 83 posts

+5
Neutral

Posted 25 January 2024 - 20:03

Thank you but with a empty .vimrc don't help 




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users