vim-textobj-parameter is a Vim plugin to provide text objects (a,
and i,
by
default) to select parameters of functions.
-
i,
to inner parameter objectfunction(param_a, param_b, param_c) |<--->| |<--->| |<--->|
-
a,
to a parameter object including whitespaces and commafunction(param_a, param_b, param_c) |<----->| function(param_a, param_b, param_c) |<----->| function(param_a, param_b, param_c) |<----->|
-
In addition, 'i2,' is similar to
a,
except trailing whitespace characters (especially for first parameter)function(param_a, param_b, param_c) |<---->|
By default this motion is mapped to ',' (comma). The key mapping can be overridden by adding a line similar to this to your vimrc:
let g:vim_textobj_parameter_mapping = ','
MIT License
- Original: ampmmn
- Modified: sgur mailto:sgurrr@gmail.com