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.
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.
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.
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.
yes
—
Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.
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.
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.
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.
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.
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.
—
Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.
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.
is gvim receive less updates compare to vim?
—
Reply to this email directly, view it on GitHub.
You are receiving this because you commented.
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.
no gvim is vim
—
Reply to this email directly, view it on GitHub.
You are receiving this because you commented.
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.
you dont clarified where run ./configure
—
Reply to this email directly, view it on GitHub.
You are receiving this because you commented.
from the src
directory
—
Reply to this email directly, view it on GitHub.
You are receiving this because you commented.
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.
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.