I am on Ubuntu 22.10, when I copy text from anywhere, there is no problem with pasting it on a regular other app. But I get errors when I try to paste the text into terminal text editors.

For example in Nano I get the error [ Cutbuffer is empty ]

and in VIM : error E353: Nothing in register *

I've tried this for vim in .vimrc :

set clipboard=unnamed

and didn't work!

NOTE: when first open vim, running the above command in vim command bar causes the error to not be displayed, but the clipboard is empty and nothing pasted!


1 Answer 1


According to the @esther's guide, those editors use their own clipboards, not the system ones. More details on this link

You must log in to answer this question.

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