About: Introduce variable   Sponge Permalink

An Entity of Type : owl:Thing, within Data Space : dbkwik.org associated with source dataset(s)

Example, given (Python) source code like: if x > 3 * y + 4 * z: You could position the cursor on the 3, then delete the RHS formula, and insert a name for it. You can do the "delete and insert" separately or in one go, e.g. go to the 3 and press "c/:formula". Or separately as "d/:", followed by "iformula". In either case you should now see: if x > formula: Then pressing \v gives formula = 3 * y + 4 * z if x > formula: What it does:

AttributesValues
rdfs:label
  • Introduce variable
rdfs:comment
  • Example, given (Python) source code like: if x > 3 * y + 4 * z: You could position the cursor on the 3, then delete the RHS formula, and insert a name for it. You can do the "delete and insert" separately or in one go, e.g. go to the 3 and press "c/:formula". Or separately as "d/:", followed by "iformula". In either case you should now see: if x > formula: Then pressing \v gives formula = 3 * y + 4 * z if x > formula: What it does:
Version
  • 5(xsd:double)
dbkwik:vim/property/wikiPageUsesTemplate
Previous
  • 1168(xsd:integer)
Category
  • LanguageSpecific
  • Automated Text Insertion
Author
  • Alan Brogan
Complexity
  • basic
Created
  • 2006(xsd:integer)
ID
  • 1171(xsd:integer)
NEXT
  • 1172(xsd:integer)
Rating
  • 1(xsd:integer)
abstract
  • Example, given (Python) source code like: if x > 3 * y + 4 * z: You could position the cursor on the 3, then delete the RHS formula, and insert a name for it. You can do the "delete and insert" separately or in one go, e.g. go to the 3 and press "c/:formula". Or separately as "d/:", followed by "iformula". In either case you should now see: if x > formula: Then pressing \v gives formula = 3 * y + 4 * z if x > formula: What it does: 1. * Go to start of line 2. * Go to before next word 3. * Add the last inserted text 4. * Add " = " 5. * Add the last deleted text 6. * Add a to separate the new line from the old line (and vim preserves the indentation)
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