English
Ask Your Question
0

vim-gtk or vim-gnome didn't provide for Fedora repo

asked 2017-11-14 19:37:12 +0000

Ed Nora gravatar image

updated 2017-11-14 19:38:04 +0000

According to vim.wikia if vim 's features don't provide clipboard we can install vim-gtk or vim-gnome packages in Debian-based distros but we have not any packages that called same. In that wiki page said:

If you are running Redhat/CentOS, you can install the vim-X11 package (if you have gvim then this is already installed). This provides the vimx command, which is a console version of Vim with X11-clipboard support.

I installed vim-X11(gvim) package but it's still doesn't support clipboard feature.

Now, how can I provide clipboard feature for my vim?

edit retag flag offensive close merge delete

2 answers

Sort by ยป oldest newest most voted
0

answered 2017-11-15 10:43:17 +0000

Simon98 gravatar image

Hi there. Just see How do I get +clipboard support in Fedora 20? to get it done. Good luck

edit flag offensive delete link more
0

answered 2017-11-14 19:51:32 +0000

Samuel Sieb gravatar image

updated 2017-11-16 22:45:04 +0000

When I run gvim, it works for me. "+p pastes the system clipboard contents.

Update since I misunderstood the original question:

You actually provided the answer in your question. The vim-X11 package provides the vimx executable which has clipboard support. However, one thing to remember is that in order to access the clipboard it has to be able to contact the X server. So make sure that the DISPLAY variable is set correctly and that the process has permission to talk to the X server.

edit flag offensive delete link more

Comments

Yes it can in Vim too. But I want to enable this feature as default in my vim (and it can enable with setting cilpboard=unnamedplus) but it actually doesn't support in my vim. Just see: https://paste.fedoraproject.org/paste...

Ed Nora ( 2017-11-14 20:18:43 +0000 )edit

Sorry, I misunderstood the question. I will edit my answer.

Samuel Sieb ( 2017-11-16 22:40:38 +0000 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

[hide preview]

Use your votes!

  • Use the 30 daily voting points that you get!
  • Up-vote well framed questions that provide enough information to enable people provide answers.
  • Thank your helpers by up-voting their comments and answers. If a question you asked has been answered, accept the best answer by clicking on the checkbox on the left side of the answer.
  • Down-voting might cost you karma, but you should consider doing so for incorrect or clearly detrimental questions and answers.

Question Tools

Follow
1 follower

Stats

Asked: 2017-11-14 19:37:12 +0000

Seen: 38 times

Last updated: Nov 16