I have the following situation. If I open a file in Vim, say by running vim myfile.tex, select something in visual mode, and do "+y, it is in the system clipboard as one would hope. If however I open a project, say vim -S myproject.vim, in which the same files are open, "+y does not change the system clipboard. This behavior is actually new; it did not do it before yesterday. I did not to my knowledge change anything in the configuration in the intervening period.
My current default Vim does return -clipboard among other things from vim --version, so I suppose I am lucky it works in even setting, but I am reluctant to switch to a different version of Vim because I switched to the present one because another extension was broken. The computer is running Ubuntu 22.04.
vnoremap Y "+ywas not behaving as expected, but I realized afterward that generally,"+yywas not functioning, but only within a project, likevim -S myproject.vim; in the contextvim myfile.texit was working just fine. I have checked:vim --versionon both versions, and it comes up with-clipboard, so one wouldn't expect it to work at all, but it does work consistently when I simply open a file. – jdc Sep 23 '22 at 14:58-clipboardand still changes the clipboard then it has some mapping fory; 2. If it only works after-S foobar.vimthen&ssophasoptionsflag set and that mapping was saved into session file (but it's not in vimrc).