About: Insert C++ or LaTeX or other comments easily   Sponge Permalink

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

If you have, for example, paragraph in a LaTeX file and you want to comment it (so that it does not appear in the output anymore), then you have to insert the percent sign '%' at the beginning of every line. An easy way to do this is to select visually the block of text, press ':' for entering a vim command (which automatically expands to :'<,'>) and to use substitute s/^/%/ The whole command then looks like :'<,'>s/^// So just press enter and the comment will be inserted at the beginning of all the selected lines.

AttributesValues
rdfs:label
  • Insert C++ or LaTeX or other comments easily
rdfs:comment
  • If you have, for example, paragraph in a LaTeX file and you want to comment it (so that it does not appear in the output anymore), then you have to insert the percent sign '%' at the beginning of every line. An easy way to do this is to select visually the block of text, press ':' for entering a vim command (which automatically expands to :'<,'>) and to use substitute s/^/%/ The whole command then looks like :'<,'>s/^// So just press enter and the comment will be inserted at the beginning of all the selected lines.
Version
  • 6(xsd:integer)
dbkwik:vim/property/wikiPageUsesTemplate
Previous
  • 387(xsd:integer)
Category
  • Automated Text Insertion
Author
  • Pavel
Complexity
  • basic
Created
  • 2002-12-16(xsd:date)
ID
  • 388(xsd:integer)
NEXT
  • 389(xsd:integer)
Rating
  • 214(xsd:integer)
abstract
  • If you have, for example, paragraph in a LaTeX file and you want to comment it (so that it does not appear in the output anymore), then you have to insert the percent sign '%' at the beginning of every line. An easy way to do this is to select visually the block of text, press ':' for entering a vim command (which automatically expands to :'<,'>) and to use substitute s/^/%/ The whole command then looks like :'<,'>s/^// So just press enter and the comment will be inserted at the beginning of all the selected lines. If you want to delete it later, just use column blocks (Control-V starts blockwise visual selection) to select first column(s) and d to delete them.
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