Vim 8.1.152 cannot copy text to the pasteboard using `V "* y`

< H2 > such as centos < / H2 >
vim 8.1.152 cannot copy text to the pasteboard using V "* y
Vim
Mar.24,2021

ubuntu16.04, vim8.0.727 means: V "+ y No problem.


Vim wants to copy text to the system clipboard, you need to make sure that vim has + clipboard support

vim --version | grep clip
-clipboard       +insert_expand   +path_extra      +user_commands
+emacs_tags      -mouseshape      +startuptime     -xterm_clipboard

if what you see is + clipboard, then you can copy it to the system clipboard. You can recompile Vim or install vim-gtk

Menu