This forum has been archived. All content is frozen. Please use KDE Discuss instead.

How do I copy from vim to clipboard

Tags: None
(comma "," separated)
bluekyu
Registered Member
Posts
3
Karma
0
OS

How do I copy from vim to clipboard

Mon Feb 21, 2011 4:06 pm
I use editor environment with kubuntu 10.10 + kde 4.5.5 + vim 7.2 + konsole + klipper.

But I can not copy from vim to clipboard. I used "+y or "*y. But this did not work on.
I can use copy/paste of konsole, Ctrl + Shift + C/V instead. But this is inconvenient because I use line number settings in vim.

So how can I copy to clipboard? :'(
brenden1096
Registered Member
Posts
2
Karma
0
OS
I used to use vim all the time and as far as I know there is no other way of copying text from vim unless you highlight and copy from konsole. But if I'm wrong someone please correct me.
brenden1096
Registered Member
Posts
2
Karma
0
OS
Chrome kept saying it was unable to connect to the server so please pardon my reposting.
User avatar
Hans
Administrator
Posts
3304
Karma
24
OS
Run
Code: Select all
vim --version

and see if you have "+xterm_clipboard".


Problem solved? Please click on "Accept this answer" below the post with the best answer to mark your topic as solved.

10 things you might want to do in KDE | Open menu with Super key | Mouse shortcuts
bluekyu
Registered Member
Posts
3
Karma
0
OS
Thank you so much, Hans!

I solved this problem. My vim had -xterm_clipboard not +xterm_clipboard. So I installed vim-gui-common package. Then xterm_clipboard was enabled. I can use "+y key. Thanks!
User avatar
Hans
Administrator
Posts
3304
Karma
24
OS
Great! Since you've found a solution, please mark the topic as solved (click on Image under the post with the solution, i.e. your last post). :)


Problem solved? Please click on "Accept this answer" below the post with the best answer to mark your topic as solved.

10 things you might want to do in KDE | Open menu with Super key | Mouse shortcuts


Bookmarks



Who is online

Registered users: bartoloni, Bing [Bot], Google [Bot], Yahoo [Bot]