Ad blocker interference detected!
Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers
Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.
created July 20, 2005 · complexity basic · author Ivan Tishchenko · version 5.7
Vim can access two different clipboard registers: * (primary selection) and + (clipboard). On Windows, either one can be used.
There are a number of ways of copying the entire contents of a file to the clipboard. These include:
gg"*yG gg"+yG :set go+=a ggVG ggVGy :set cb+=unnamed ggyG
:%y+ :set cb+=unnamed :%y
Visual Mode (linewise)
ggoG"+y :set go+=a ggoG
Visual Mode (characterwise or blockwise)
VggoG"+y :set go+=a VggoG
Windows Specific (with Windows key bindings in effect)