About: Commenting with opfunc   Sponge Permalink

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

For example, put the cursor anywhere in the def block in the following Python code: class Example: def f(self, x): if x < 5: print "Pointless function." return 0 The command yip (yank inner paragraph) would copy the block. In a similar manner, the command \cip will comment-out the block, resulting in: class Example: # def f(self, x): # if x < 5: # print "Pointless function." # return 0 Later, you could remove the comment signifiers with \Cip. An operator can be used in two ways: Examples:

AttributesValues
rdfs:label
  • Commenting with opfunc
rdfs:comment
  • For example, put the cursor anywhere in the def block in the following Python code: class Example: def f(self, x): if x < 5: print "Pointless function." return 0 The command yip (yank inner paragraph) would copy the block. In a similar manner, the command \cip will comment-out the block, resulting in: class Example: # def f(self, x): # if x < 5: # print "Pointless function." # return 0 Later, you could remove the comment signifiers with \Cip. An operator can be used in two ways: Examples:
Version
  • 7(xsd:integer)
dbkwik:vim/property/wikiPageUsesTemplate
Previous
  • 1569(xsd:integer)
Author
  • Jlepak
Subpage
  • /200806
Complexity
  • basic
Created
  • 2008(xsd:integer)
ID
  • 1570(xsd:integer)
NEXT
  • 1571(xsd:integer)
abstract
  • For example, put the cursor anywhere in the def block in the following Python code: class Example: def f(self, x): if x < 5: print "Pointless function." return 0 The command yip (yank inner paragraph) would copy the block. In a similar manner, the command \cip will comment-out the block, resulting in: class Example: # def f(self, x): # if x < 5: # print "Pointless function." # return 0 Later, you could remove the comment signifiers with \Cip. An operator can be used in two ways: * Invoke the operator, then enter a movement command. or * Visually select a block, then invoke the operator. Examples: * \ciB comment inner block (between braces) * \c} comment to end paragraph * \cG comment to end buffer * Vjjj\c comment visually-selected lines
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