sponsor Vim development Vim logo go to HTTPS page Vim Book Ad

textobj-functioncall : The textobject plugin to select a region that calls function.

 script karma  Rating 0/0, Downloaded by 215    Comments, bugs, improvements  Vim wiki

created by
Masaaki Nakamura
 
script type
utility
 
description
The vim textobject plugin to treat function-call-like regions.

Default mappings are assigned to 'if' and 'af'.

* 'if' and 'af', both of them select a region like 'func(argument)'.
* 'if' and 'af' behave differently when a function takes another function as its argument.
* 'if' selects the most inner function under the cursor.
* 'af' selects the first function including the cursor position by its parenthesis. However if any candidate would be found, it falls back to 'if'.

For example the cursor is on '2' of "func1(func2(argument))"
* 'if' selects "func2(argument)".
* 'af' selects "func1(func2(argument))".

This textobject could select following similar patterns.
* func(argument)
* array[index]

Latest version: https://github.com/machakann/vim-textobj-functioncall
 
install details
Unzip and just put all folders in your ~/.vim.
 

Rating scripts is only available on the HTTPS page

script versions (upload new version)

Click on the package to download.

package script version date Vim version user release notes
vim-textobj-functioncall-1.0.1.zip 1.0.1 2016-02-18 7.4 Masaaki Nakamura - Add multibyte character support for julia language.
textobj-functioncall-1.0.0.zip 1.0.0 2015-03-12 7.2 Masaaki Nakamura Initial upload
ip used for rating: 54.167.126.106

If you have questions or remarks about this site, visit the vimonline development pages. Please use this site responsibly.
Questions about Vim should go to the maillist. Help Bram help Uganda.
   
SourceForge.net Logo