Vim: Copying to and retrieving from the clipboard

  • For the record, Vim's "+ register reflects the contents of the X11 primary selection (used for X11's middle-click-paste functionality) while "* reflects the system clipboard (used for Edit menu cut/copy/paste in most GUI apps).

    Type ":help quoteplus" in Vim for more information.