" A Vim plugin that defines a parameter text object. " Maintainer: David Larson " Last Change: Mar 15, 2010 " " This script defines a parameter text object. A parameter is the text between " parentheses or commas, typically found in a function's argument list. " " See: " :help text-objects " for a description of what can be done with text objects. " Also See: " :help a( " If you want to operate on the parentheses also. " " 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. " " If you would like to remap the commands then you can prevent the default " mappings from getting set if you set g:no_parameter_object_maps = 1 in your " .vimrc file. Then remap the commands as desired, like this: " " let g:no_parameter_object_maps = 1 " vmap ia ParameterObjectI " omap ia ParameterObjectI " vmap aa ParameterObjectA " omap aa ParameterObjectA if exists("loaded_parameter_objects") || &cp || v:version < 701 finish endif let loaded_parameter_objects = 1 if !exists("g:no_parameter_object_maps") || !g:no_parameter_object_maps vmap iP ParameterObjectI omap iP ParameterObjectI vmap aP ParameterObjectA omap aP ParameterObjectA endif vnoremap