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

7
  • Which vim package have you installed?
    – Kusalananda
    Jan 2, 2020 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 [email protected] Compiled by [email protected] Huge version without GUI. `
    – poul1x
    Jan 2, 2020 at 20:26
  • Vim isn't responsible for copy/past behavior in that configuration, urxvt is: Copying & Pasting with URxvt Jan 2, 2020 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, 2020 at 20:47
  • I'm running xorg. I can use ctrl-alt-v to copy/paste in urxvt and vim. But "+, "* not work
    – poul1x
    Jan 2, 2020 at 20:56

1 Answer 1

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.

3
  • How are you expecting a VIM that has no X client code to access the X clipboard of an X server? (-:
    – JdeBP
    Jan 2, 2020 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. Jan 2, 2020 at 20:37
  • 1
    vim-gtk works well, but I would prefer approach without bunch of dependencies to achieve that
    – poul1x
    Jan 2, 2020 at 21:13

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .