Refer Link
The"*And"+Registers are for the system's clipboard (:help registers). Depending on your system, they may do different things. For instance, on systems that don't use X11 like OSX or windows,"*Register is used to read and write to the system clipboard. On X11 systems both registers can be used. See:help x11-selectionFor more details, but basically"*Is analogous to X11'sPrimarySelection (which usually copies things you select with the mouse and pastes with the middle mouse button) and"+Is analogous to X11'sClipboardSelection (which is the clipboard proper ).
If all that went over your head, try using"*yyOr"+yyTo copy a line to your system's clipboard. One or the other shocould work. You might like to remap this to something more convenient for you. For example, you cocould putvnoremap <C-c> "*yIn your ~ /. Vimrc so that you can sort ally select and pressCTRL+CTo Yank to your system's clipboard.
Be aware that copying/pasting from the system clipboardWill not workIf:echo has(‘clipboard‘)Returns 0. In this case, VIM is not compiled with+clipboardFeature and you'll have to install a different version or recompile it. some Linux distros supply a minimal Vim installation by default, but generally if you install the vim-GTK package you can get the extra features.
You also may want to have a look at‘clipboard‘Option described:help cb. In this case you can:set clipboard=unnamedOr:set clipboard=unnamedplusTo make all yanking/deleting operations automatically copy to the system clipboard. This cocould be an inconvenience in some cases where you are storing something else in the clipboard as it will override it.
To paste you can use"+pOr"*p(Again, depending on your system and/or desired selection) or you can map these to something else. I type them explicitly, but I often find myself in insert mode. if you're in insert mode you can still paste them with proper Indentation by using<C-r><C-p>*Or<C-r><C-p>+. See:help i_CTRL-R_CTRL-P.
It's also worth mentioning Vim'spasteOption (:help paste). This puts Vim into a special "paste mode" that disables several other options, allowing you to easily paste into Vim using your terminal emulator or Multiplexer's familiar paste shortcut. Simply type:set pasteTo enable it, paste your content and then type:set nopasteTo disable it. Alternatively, you can usepastetoggleOption to set a keycode that Toggles the mode (:help pastetoggle). I recommend using registers instead of these options, but if they are still too scary this can be a convenient workaround while you're perfecting your vim chops.
See:help clipboardFor more detailed information.