Is there any way to copy all lines from a file to clipboard in VI editor. I have tried *yG, +yG, \"+yG and :%y+ from prev
*yG
+yG
\"+yG
:%y+
vim --version | grep clipboard, if you see "-clipboard", you won't do that . Your vim doesn't support it. You need recompile the source code。
$./configure \ --enable-gui=auto --with-features=huge --with-x $ make && sudo make install