Skip to main content
Even with muru's edit, this was still misleading. If you set `unnamedplus` you don't need to specify the `+` register in every command.
Source Link
Rich
  • 32.6k
  • 4
  • 74
  • 141

From http://vim.wikia.com/wiki/Accessing_the_system_clipboard

set clipboard=unnamedplus

Then use "+y for copying and "+p for pasting.

This changes the default Vim register to the + register, which is linked to the system clipboard. From :h clipboard-unnamedplus:

                                        clipboard-unnamedplus
unnamedplus     A variant of the "unnamed" flag which uses the
                clipboard register '+' (quoteplus) instead of
                register '*' for all yank, delete, change and put
                operations which would normally go to the unnamed
                register.  When "unnamed" is also included to the
                option, yank operations (but not delete, change or
                put) will additionally copy the text into register
                '*'.
                Only available with the +X11 feature.
                Availability can be checked with: 
                        if has('unnamedplus')

From http://vim.wikia.com/wiki/Accessing_the_system_clipboard

set clipboard=unnamedplus

Then use "+y for copying and "+p for pasting.

This changes the default Vim register to the + register, which is linked to the system clipboard. From :h clipboard-unnamedplus:

                                        clipboard-unnamedplus
unnamedplus     A variant of the "unnamed" flag which uses the
                clipboard register '+' (quoteplus) instead of
                register '*' for all yank, delete, change and put
                operations which would normally go to the unnamed
                register.  When "unnamed" is also included to the
                option, yank operations (but not delete, change or
                put) will additionally copy the text into register
                '*'.
                Only available with the +X11 feature.
                Availability can be checked with: 
                        if has('unnamedplus')

From http://vim.wikia.com/wiki/Accessing_the_system_clipboard

set clipboard=unnamedplus

This changes the default Vim register to the + register, which is linked to the system clipboard. From :h clipboard-unnamedplus:

                                        clipboard-unnamedplus
unnamedplus     A variant of the "unnamed" flag which uses the
                clipboard register '+' (quoteplus) instead of
                register '*' for all yank, delete, change and put
                operations which would normally go to the unnamed
                register.  When "unnamed" is also included to the
                option, yank operations (but not delete, change or
                put) will additionally copy the text into register
                '*'.
                Only available with the +X11 feature.
                Availability can be checked with: 
                        if has('unnamedplus')
added 835 characters in body
Source Link
muru
  • 25.1k
  • 8
  • 83
  • 144

From http://vim.wikia.com/wiki/Accessing_the_system_clipboard

set clipboard=unnamedplus

Then use "+y for copying and "+p for pasting.

This tieschanges the system clipboarddefault Vim register to the + register. You access, which is linked to the + register by prefixing your copy and paste commands with "+system clipboard. From :h clipboard-unnamedplus:

                                        clipboard-unnamedplus
unnamedplus     A variant of the "unnamed" flag which uses the
                clipboard register '+' (quoteplus) instead of
                register '*' for all yank, delete, change and put
                operations which would normally go to the unnamed
                register.  When "unnamed" is also included to the
                option, yank operations (but not delete, change or
                put) will additionally copy the text into register
                '*'.
                Only available with the +X11 feature.
                Availability can be checked with: 
                        if has('unnamedplus')

From http://vim.wikia.com/wiki/Accessing_the_system_clipboard

set clipboard=unnamedplus

Then use "+y for copying and "+p for pasting.

This ties the system clipboard to the + register. You access the + register by prefixing your copy and paste commands with "+.

From http://vim.wikia.com/wiki/Accessing_the_system_clipboard

set clipboard=unnamedplus

Then use "+y for copying and "+p for pasting.

This changes the default Vim register to the + register, which is linked to the system clipboard. From :h clipboard-unnamedplus:

                                        clipboard-unnamedplus
unnamedplus     A variant of the "unnamed" flag which uses the
                clipboard register '+' (quoteplus) instead of
                register '*' for all yank, delete, change and put
                operations which would normally go to the unnamed
                register.  When "unnamed" is also included to the
                option, yank operations (but not delete, change or
                put) will additionally copy the text into register
                '*'.
                Only available with the +X11 feature.
                Availability can be checked with: 
                        if has('unnamedplus')
code formatting
Source Link
muru
  • 25.1k
  • 8
  • 83
  • 144

From http://vim.wikia.com/wiki/Accessing_the_system_clipboard

set clipboard=unnamedplus

set clipboard=unnamedplus

Then use "+y for copying and "+p for pasting.

This ties the system clipboard to the + register. You access the + register by prefixing your copy and paste commands with "+.

From http://vim.wikia.com/wiki/Accessing_the_system_clipboard

set clipboard=unnamedplus

Then use "+y for copying and "+p for pasting.

This ties the system clipboard to the + register. You access the + register by prefixing your copy and paste commands with "+.

From http://vim.wikia.com/wiki/Accessing_the_system_clipboard

set clipboard=unnamedplus

Then use "+y for copying and "+p for pasting.

This ties the system clipboard to the + register. You access the + register by prefixing your copy and paste commands with "+.

Source Link
Quincy Bowers
  • 1.5k
  • 10
  • 10
Loading