[vim/vim] Then Vim add clipboard support to regular vim (Discussion #17343)

24 views
Skip to first unread message

ScriptScorpion

unread,
May 19, 2025, 4:29:06 AMMay 19
to vim/vim, Subscribed

In regular Vim i (maybe others) dont have clipboard support that means i can only copy and paste in Vim but cannot paste then i exit vim(its saving text only to vim clipboard but not for user clipboard).
Why dont add clipboard support to regular Vim, not only for Gvim?


Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/repo-discussions/17343@github.com>

Maxim Kim

unread,
May 19, 2025, 5:53:31 AMMay 19
to vim/vim, Subscribed

Vim has clipboard support (not for wayland as of now). I believe if you search internet you'll find quite a lot of resources explaining it. But in short, your vim should be compiled with +clipboard feature and be linked against X libraries using --with-x(?) configure option (I don't remember exactly the names of libraries and configure option).


Reply to this email directly, view it on GitHub.

You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/repo-discussions/17343/comments/13191860@github.com>

ScriptScorpion

unread,
May 19, 2025, 7:41:20 AMMay 19
to vim/vim, Subscribed

yes you can build from source but its harder then just already builded binary


Reply to this email directly, view it on GitHub.

You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/repo-discussions/17343/comments/13192778@github.com>

Maxim Kim

unread,
May 19, 2025, 7:57:43 AMMay 19
to vim/vim, Subscribed

I don't understand the question/suggestion then. Do you want vim always be compiled with +clipboard feature?


Reply to this email directly, view it on GitHub.

You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/repo-discussions/17343/comments/13192996@github.com>

ScriptScorpion

unread,
May 19, 2025, 8:00:47 AMMay 19
to vim/vim, Subscribed

yes


Reply to this email directly, view it on GitHub.

You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/repo-discussions/17343/comments/13193031@github.com>

Maxim Kim

unread,
May 19, 2025, 8:20:36 AMMay 19
to vim/vim, Subscribed

This is up to the people who is in charge of building binaries for the distribution you're using.


Reply to this email directly, view it on GitHub.

You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/repo-discussions/17343/comments/13193294@github.com>

ScriptScorpion

unread,
May 19, 2025, 8:22:56 AMMay 19
to vim/vim, Subscribed

but vim can create guide how to build it with this features


Reply to this email directly, view it on GitHub.

You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/repo-discussions/17343/comments/13193326@github.com>

Maxim Kim

unread,
May 19, 2025, 8:29:26 AMMay 19
to vim/vim, Subscribed

Like this answer? https://vi.stackexchange.com/questions/30787/install-vim-with-clipboard-support-but-without-gvim


Reply to this email directly, view it on GitHub.

You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/repo-discussions/17343/comments/13193392@github.com>

ScriptScorpion

unread,
May 19, 2025, 8:36:41 AMMay 19
to vim/vim, Subscribed

good reply but in stack overflow no real answer all saying they 'right' way to do this


Reply to this email directly, view it on GitHub.

You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/repo-discussions/17343/comments/13193466@github.com>

ScriptScorpion

unread,
May 19, 2025, 8:44:25 AMMay 19
to vim/vim, Subscribed

like this but all have different operating systems not all use Debian


Reply to this email directly, view it on GitHub.

You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/repo-discussions/17343/comments/13193565@github.com>

Gary Johnson

unread,
May 19, 2025, 10:01:55 AMMay 19
to reply+ACY5DGAHWY4OJ2ZI2T...@reply.github.com, vim...@googlegroups.com
On 2025-05-19, Maxim Kim (Vim Github Repository) wrote:
> This is up to the people who is in charge of building binaries for the
> distribution you're using.

And they often create a package that has clipboard and X11 enabled,
but the package may not have a name you would expect. For example,
Ubuntu's vim package does not have X11 enabled, but you can install
the vim-gtk3 package which installs a vim as well as a gvim that has
X11 enabled.

Regards,
Gary

vim-dev ML

unread,
May 19, 2025, 10:02:27 AMMay 19
to vim/vim, vim-dev ML, Your activity


Reply to this email directly, view it on GitHub.

You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/repo-discussions/17343/comments/13194509@github.com>

Christian Brabandt

unread,
May 19, 2025, 10:03:02 AMMay 19
to vim/vim, vim-dev ML, Comment

This is not really a why. It's basically a matter of installing the right flavor of vim and making sure the clipboard libraries are available on your system (that includes the X11 libraries, which is usually not possible on pure server installations). If that is fine, install the gvim application and then just start gvim using the -v switch, to make sure to not launch the gui. That vim will then have clipboard feature enabled.


Reply to this email directly, view it on GitHub.

You are receiving this because you commented.Message ID: <vim/vim/repo-discussions/17343/comments/13194512@github.com>

ScriptScorpion

unread,
May 19, 2025, 10:23:29 AMMay 19
to vim/vim, vim-dev ML, Comment

is gvim receive less updates compare to vim?


Reply to this email directly, view it on GitHub.

You are receiving this because you commented.Message ID: <vim/vim/repo-discussions/17343/comments/13194728@github.com>

iampi31415

unread,
May 19, 2025, 10:29:15 AMMay 19
to vim/vim, vim-dev ML, Comment

imho it'd be a good idea to have an explicit instruction somewhere in the vim docs or README.md, for how to build with clipboard support.


Reply to this email directly, view it on GitHub.

You are receiving this because you commented.Message ID: <vim/vim/repo-discussions/17343/comments/13194811@github.com>

Christian Brabandt

unread,
May 19, 2025, 11:36:07 AMMay 19
to vim/vim, vim-dev ML, Comment

no gvim is vim


Reply to this email directly, view it on GitHub.

You are receiving this because you commented.Message ID: <vim/vim/repo-discussions/17343/comments/13195615@github.com>

Christian Brabandt

unread,
May 19, 2025, 11:48:35 AMMay 19
to vim/vim, vim-dev ML, Comment

the thing explicit build instructions is, it depends on what system you are using. You need to make sure you have the required X11 development libraries installed and then run ./configure [other-flags] --with-x for [other-flags] see the output of ./configure --help. But make sure you have the required dependencies installed so Vim can be build against those.


Reply to this email directly, view it on GitHub.

You are receiving this because you commented.Message ID: <vim/vim/repo-discussions/17343/comments/13195746@github.com>

ScriptScorpion

unread,
May 19, 2025, 11:56:03 AMMay 19
to vim/vim, vim-dev ML, Comment

you dont clarified where run ./configure


Reply to this email directly, view it on GitHub.

You are receiving this because you commented.Message ID: <vim/vim/repo-discussions/17343/comments/13195842@github.com>

Christian Brabandt

unread,
May 19, 2025, 12:01:08 PMMay 19
to vim/vim, vim-dev ML, Comment

from the src directory


Reply to this email directly, view it on GitHub.

You are receiving this because you commented.Message ID: <vim/vim/repo-discussions/17343/comments/13195886@github.com>

ScriptScorpion

unread,
May 19, 2025, 12:26:44 PMMay 19
to vim/vim, vim-dev ML, Comment

thank you if you do git clone vim github and then 'cd src' and './configure --with-features=huge --enable-terminal' then do 'make' and 'sudo make install ' all working fine and i have clipboard enabled


Reply to this email directly, view it on GitHub.

You are receiving this because you commented.Message ID: <vim/vim/repo-discussions/17343/comments/13196117@github.com>

Phạm Bình An

unread,
May 22, 2025, 12:15:58 AMMay 22
to vim/vim, vim-dev ML, Comment

You can also run ./configure from Vim repo's root directory


Reply to this email directly, view it on GitHub.

You are receiving this because you commented.Message ID: <vim/vim/repo-discussions/17343/comments/13228788@github.com>

Reply all
Reply to author
Forward
0 new messages