About: Use filter commands to process text   Sponge Permalink

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

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:

AttributesValues
rdfs:label
  • Use filter commands to process text
rdfs:comment
  • 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:
Version
  • 6(xsd:integer)
dbkwik:vim/property/wikiPageUsesTemplate
Previous
  • 371(xsd:integer)
Author
  • zzapper
Complexity
  • basic
Created
  • 2002(xsd:integer)
ID
  • 374(xsd:integer)
NEXT
  • 375(xsd:integer)
Rating
  • 32(xsd:integer)
abstract
  • 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): :redir @A :set nomore :echo 'History' :history :echo 'Scripts loaded' :scriptnames :set more :redir END Redirection to a file: :redir > out.txt :registers " any other commands :redir END The above writes to the new file out.txt. The command does nothing if that file already exists. To overwrite the file if it exists, use :redir! > out.txt. To create a new file or append to an existing file, use :redir >> out.txt. Store glob results in register a: " Clear @a (register a) because need to use A to append. :let @a = '' " Append all lines containing 'fred' to register a. :g/fred/y A " Append to a file (must use >>). :'a,'b g/^Error/ .w >> errors.txt The last command uses the :.w command which writes the current line (.) by appending it to file errors.txt.
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