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:
Attributes | Values |
---|
rdfs:label
| |
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
| |
dbkwik:vim/property/wikiPageUsesTemplate
| |
Previous
| |
Author
| |
Subpage
| |
Complexity
| |
Created
| |
ID
| |
NEXT
| |
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
|