17 September 2023

How to copy from vim to system clipboard on ubuntu?

https://superuser.com/questions/1559544/how-to-copy-from-vim-to-clipboard-on-ubuntu-20-04


You need to make sure clipboard is activated (which is probably not the case).

Run : vim --version | grep 'clipboard'

if you get "-clipboard" then you would have to install vim again with the "clipboard" functionality.

You can do it it by installing "vim-gtk3" or "gvim".

Solution

sudo apt-get install vim-gtk3 -y

With that, you will be able to copy into clipboard by typing (including the plus) "+y

No comments:

Post a Comment