Skip to content

sgur/vim-textobj-parameter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 

Repository files navigation

vim-textobj-parameter

vim-textobj-parameter is a Vim plugin to provide text objects (a, and i, by default) to select parameters of functions.

Usage

  • i, to inner parameter object

    function(param_a, param_b, param_c)
             |<--->|  |<--->|  |<--->|
  • a, to a parameter object including whitespaces and comma

    function(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)
             |<---->|

Configuration

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 = ','

Requirement

License

MIT License

Author

About

A fork of textobj-parameter 0.1.0

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •