I'm running Ubuntu 18.04 with i3wm. Vim and vim-gtk3 packages are installed.
If I'm in a regular terminal and I start editing a file in vim. I can yank text to the +
register as expected. However, if I am browsing the filesystem with ranger
, and I use ranger to open a file in vim, I cannot use the +
register. If I try typing "+yy
to yank a line, I get an error bell when I press +
. The same goes for the *
register.
As far as I can tell, everything else is the same about vim. I can't figure out why just the clipboard registers won't function in this specific case.
:version
when you start Vim both ways. Do both of them include+clipboard
among the features? You might have two separate Vim binaries and you're getting one or the other depending on how you start it. Please edit the question to report on your additional findings.