About: Reversing order of blocks of text   Sponge Permalink

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

One might have many blocks of text that are clearly delimited, but which need the order reversed, as in this example: ... html for first block, multiple lines ... ... html for second block, multiple lines ... ... html for third block, multiple lines ... To solve this problem, observe that the first block does not need to be moved. Go to the last line of the first block (in this case the ) then record a macro by typing: Now you should be able to run the macro with @a (and then @@ for each subsequent run) for each block you need to move. Note that this won't work for nested

AttributesValues
rdfs:label
  • Reversing order of blocks of text
rdfs:comment
  • One might have many blocks of text that are clearly delimited, but which need the order reversed, as in this example: ... html for first block, multiple lines ... ... html for second block, multiple lines ... ... html for third block, multiple lines ... To solve this problem, observe that the first block does not need to be moved. Go to the last line of the first block (in this case the ) then record a macro by typing: Now you should be able to run the macro with @a (and then @@ for each subsequent run) for each block you need to move. Note that this won't work for nested
Version
  • 7(xsd:integer)
dbkwik:vim/property/wikiPageUsesTemplate
Previous
  • 1631(xsd:integer)
Author
  • Sean Whitton
Subpage
  • /200909
Complexity
  • basic
Created
  • 2009(xsd:integer)
ID
  • 1632(xsd:integer)
NEXT
  • 1633(xsd:integer)
abstract
  • One might have many blocks of text that are clearly delimited, but which need the order reversed, as in this example: ... html for first block, multiple lines ... ... html for second block, multiple lines ... ... html for third block, multiple lines ... To solve this problem, observe that the first block does not need to be moved. Go to the last line of the first block (in this case the ) then record a macro by typing: ma (set mark 'a') qa (start recording a macro to register a) jV/<\/div><cr></cr> (select the next block – these commands work for this example) :m0<cr></cr> (move the block to the beginning of the file) 'a (return to mark 'a') q (finish recording macro) Now you should be able to run the macro with @a (and then @@ for each subsequent run) for each block you need to move. For the impatient, move to the last line of your block and type maqajV/<\/div><cr> :m0 <cr> 'aq@a@@@@@@@@ </cr> </cr>; keep doing @@ until the file is reordered appropriately. Note that this won't work for nested
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