About: Accessing the system clipboard   Sponge Permalink

An Entity of Type : owl:Thing, within Data Space : 134.155.108.49:8890 associated with source dataset(s)

Vim offers the + and * registers to reference the system clipboard ([help quoteplus] and [ help quotestar]). Note that on some systems, + and * are the same, while on others they are different. Generally on Linux, + and * are different: + corresponds to the desktop clipboard (XA_SECONDARY) that is accessed using CTRL-C, CTRL-X, and CTRL-V, while * corresponds to the X11 primary selection (XA_PRIMARY), which stores the mouse selection and is pasted using the middle mouse button in most applications. We can use these registers like any other register. Here are a few common commands that demonstrate this: * gg"+yG – copy the entire buffer into + (normal mode) * "*dd – cut the current line into * (normal mode) * "+p – paste from + after the cursor (works in both normal and visua

AttributesValues
rdfs:label
  • Accessing the system clipboard
rdfs:comment
  • Vim offers the + and * registers to reference the system clipboard ([help quoteplus] and [ help quotestar]). Note that on some systems, + and * are the same, while on others they are different. Generally on Linux, + and * are different: + corresponds to the desktop clipboard (XA_SECONDARY) that is accessed using CTRL-C, CTRL-X, and CTRL-V, while * corresponds to the X11 primary selection (XA_PRIMARY), which stores the mouse selection and is pasted using the middle mouse button in most applications. We can use these registers like any other register. Here are a few common commands that demonstrate this: * gg"+yG – copy the entire buffer into + (normal mode) * "*dd – cut the current line into * (normal mode) * "+p – paste from + after the cursor (works in both normal and visua
Version
  • 7(xsd:double)
dbkwik:vim/property/wikiPageUsesTemplate
Previous
  • 983(xsd:integer)
Category
  • Integration
Text
  • fakeclip plugin
Author
  • JimD
Complexity
  • basic
Created
  • 2005(xsd:integer)
ID
  • 984(xsd:integer)
  • 2098(xsd:integer)
NEXT
  • 987(xsd:integer)
Rating
  • 30(xsd:integer)
abstract
  • Vim offers the + and * registers to reference the system clipboard ([help quoteplus] and [ help quotestar]). Note that on some systems, + and * are the same, while on others they are different. Generally on Linux, + and * are different: + corresponds to the desktop clipboard (XA_SECONDARY) that is accessed using CTRL-C, CTRL-X, and CTRL-V, while * corresponds to the X11 primary selection (XA_PRIMARY), which stores the mouse selection and is pasted using the middle mouse button in most applications. We can use these registers like any other register. Here are a few common commands that demonstrate this: * gg"+yG – copy the entire buffer into + (normal mode) * "*dd – cut the current line into * (normal mode) * "+p – paste from + after the cursor (works in both normal and visual modes) * :%y * – copy the entire buffer into * (this one is an ex command) One distinction to make is that using + and * is different from using CTRL-SHIFT-V on the terminal (or doing a right-click and then selecting "paste" in the terminal menu), where Vim essentially inserts each character in the clipboard one-by-one. In general using + and * is much more reliable than using CTRL-SHIFT-V. See also pasting registers for more general information about pasting from registers. I searched though the tips and found only a few passing references to this feature: VimTip71 (implies it's a feature of gvim, but I find it works in console Vim just fine under Linux; I only use gvim under MS Windows). VimTip771 and VimTip964 refer to an extra utility named xclip which is only for X11 and seems to be completely unnecessary for Vim using the * register), and VimTip960 (misses the point but the comments mention it a few times).
Alternative Linked Data Views: ODE     Raw Data in: CXML | CSV | RDF ( N-Triples N3/Turtle JSON XML ) | OData ( Atom JSON ) | Microdata ( JSON HTML) | JSON-LD    About   
This material is Open Knowledge   W3C Semantic Web Technology [RDF Data] Valid XHTML + RDFa
OpenLink Virtuoso version 07.20.3217, on Linux (x86_64-pc-linux-gnu), Standard Edition
Data on this page belongs to its respective rights holders.
Virtuoso Faceted Browser Copyright © 2009-2012 OpenLink Software