Check Vim Version
Check if register is available for your version of vim:
vim --version | grep clipboard
+clipboard- means it is available, skip next step.-clipboard- means it is not available.
Install a Vim that Supports Register on Ubuntu
sudo apt purge vim # remove default vim
sudo apt install vim-gtk # install the vim with extra functions
Copy to Clipboard
- Enter select mode by press
v. - Use
h+j+k+lto select content - Press
"+++yto copy selected content to system clipboard.
