1

I'm using vim on Linux Debian without desktop environment (i.e xorg, i3, urxvt). I'm not unable to copy and paste ("+, "* not work), because clipboard package is not installed:

└> vim --version | grep clipboard
-clipboard         +jumplist          +persistent_undo   +vartabs
+eval              +mouse_gpm         +syntax            -xterm_clipboard

What should I install to enable clipboard?

--- upd:

I'm running X server

  • Which vim package have you installed? – Kusalananda Jan 2 at 19:59
  • ` VIM - Vi IMproved 8.1 (2018 May 18, compiled Jun 15 2019 16:41:15) Included patches: 1-875, 878, 884, 948, 1046, 1365-1368, 1382, 1401 Modified by team+vim@tracker.debian.org Compiled by team+vim@tracker.debian.org Huge version without GUI. ` – poulix Jan 2 at 20:26
  • Vim isn't responsible for copy/past behavior in that configuration, urxvt is: Copying & Pasting with URxvt – Warren Young Jan 2 at 20:32
  • How are you expecting to use the X selections of an X server if you aren't running an X server? – JdeBP Jan 2 at 20:47
  • I'm running xorg. I can use ctrl-alt-v to copy/paste in urxvt and vim. But "+, "* not work – poulix Jan 2 at 20:56
1

According to this, you will need to install vim-gtk. The package includes a non-gui version but will install a bunch of dependencies.

  • How are you expecting a VIM that has no X client code to access the X clipboard of an X server? (-: – JdeBP Jan 2 at 20:25
  • Oops, I thought that vim-nox would include a way to use the clipboard but it won't as far as I can tell. – user1794469 Jan 2 at 20:37
  • vim-gtk works well, but I would prefer approach without bunch of dependencies to achieve that – poulix Jan 2 at 21:13

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.