Parameter Text Objects : Defines parameter text objects
| script karma
Downloaded by 779
Comments, bugs, improvements
script versions (upload new version)
|This script defines a parameter text object. A parameter is the text between parentheses or commas, typically found in a function's argument list.
This script also adds mappings to help you associate printf-type "%"-formatted strings with their corresponding arguments.
for a description of what can be done with text objects.
Like all the other text-objects, a parameter text object can be selected following these commands: 'd', 'c', 'y', 'v', etc. The script defines these operator mappings:
aP "a parameter", select a parameter, including one comma (if there is one).
iP "inner parameter", select a parameter, not including commas.
This script also adds commands that are helpful when constructing printf-style "%" formatted strings. Press ",a" (by default) to move the cursor to the corresponding argument. Press ",A" (by default) to do the opposite.
|Drop the vim script in your plugin directory.|
Click on the package to download.
ip used for rating: 188.8.131.52