{"id":13898630,"url":"https://github.com/machakann/vim-textobj-functioncall","last_synced_at":"2025-12-26T05:44:03.313Z","repository":{"id":15988751,"uuid":"18731907","full_name":"machakann/vim-textobj-functioncall","owner":"machakann","description":"The vim textobject plugin to treat function-call regions.","archived":false,"fork":false,"pushed_at":"2021-08-20T11:28:51.000Z","size":60,"stargazers_count":21,"open_issues_count":1,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-19T05:09:47.842Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Vim script","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/machakann.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-04-13T15:07:36.000Z","updated_at":"2024-07-01T08:34:22.000Z","dependencies_parsed_at":"2022-08-30T14:00:44.659Z","dependency_job_id":null,"html_url":"https://github.com/machakann/vim-textobj-functioncall","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/machakann%2Fvim-textobj-functioncall","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/machakann%2Fvim-textobj-functioncall/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/machakann%2Fvim-textobj-functioncall/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/machakann%2Fvim-textobj-functioncall/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/machakann","download_url":"https://codeload.github.com/machakann/vim-textobj-functioncall/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243213800,"owners_count":20254879,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-08-06T18:04:22.988Z","updated_at":"2025-12-26T05:44:03.267Z","avatar_url":"https://github.com/machakann.png","language":"Vim script","readme":"vim-textobj-functioncall\n========================\n\n[![Build status](https://ci.appveyor.com/api/projects/status/7fk1871r0a8bmb5h?svg=true)](https://ci.appveyor.com/project/machakann/vim-textobj-functioncall)\n[![Build Status](https://travis-ci.org/machakann/vim-textobj-functioncall.svg?branch=master)](https://travis-ci.org/machakann/vim-textobj-functioncall)\n\nThe vim textobject plugin to treat function-call regions.\n\nDefault mappings are assigned to `if` and `af`.\n\n* `if` and `af`, both of them select a region like `func(argument)`.\n* `if` and `af` behave differently when a function takes another function as its argument.\n* `if` selects the most inner function under the cursor.\n* `af` selects the first function including the cursor position by its parenthesis. However if any candidate would be found, it falls back to `if`.\n\n\n```vim\n             #              : cursor position\ncall func1(func2(argument))\n\n           |\u003c-----if----\u003e|\ncall func1(func2(argument))\n     |\u003c--------af--------\u003e|\n```\n\n---\n\nIf you don't like to map to `if` and `af`, please define the variable named `g:textobj_functioncall_no_default_key_mappings` in your vimrc.\n```vim\nlet g:textobj_functioncall_no_default_key_mappings = 1\n```\n\nAnd then map to your preferable keys.\n```vim\nxmap iF \u003cPlug\u003e(textobj-functioncall-i)\nomap iF \u003cPlug\u003e(textobj-functioncall-i)\nxmap aF \u003cPlug\u003e(textobj-functioncall-a)\nomap aF \u003cPlug\u003e(textobj-functioncall-a)\n```\n\n---\n\nThis textobject could select following patterns.\n* `func(argument)`\n* `array[index]`\n\n---\n","funding_links":[],"categories":["Vim Script"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmachakann%2Fvim-textobj-functioncall","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmachakann%2Fvim-textobj-functioncall","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmachakann%2Fvim-textobj-functioncall/lists"}