Redirection can capture the output generated by Vim commands. Redirection to clipboard register + (or use any other register a-z): :redir @+ :history :g/fred/ " any other commands :redir END The output from the commands used is now in register + which might pasted into a new buffer, for example by entering :new then typing "+p to paste. If wanted, you can temporarily turn off Vim's paging so there will be no "More" prompts, as shown in the following example which outputs to register A (so output is appended to register a): Redirection to a file: Store glob results in register a:
| Attributes | Values |
|---|---|
| rdfs:label |
|
| rdfs:comment |
|
| Version |
|
| dbkwik:vim/property/wikiPageUsesTemplate | |
| Previous |
|
| Author |
|
| Complexity |
|
| Created |
|
| ID |
|
| NEXT |
|
| Rating |
|
| abstract |
|