Skip to content
This repository

Vim plugin: Text objects for functions

branch: master
README.md

vim-textobj-function

Build Status

vim-textobj-function is a Vim plugin to text objects for functions. You can directly target a function (af) or the code inside a function (if). For example,

  • daf to Delete A Function, and
  • vif to Visually select the code Inside a Function.

The syntax of a "function" is varied for each language. So that you have to tell the syntax of a function to vim-textobj-function before editing. By default, the following languages are supported:

  • C language
  • Java
  • Vim script (including vim-vspec-specific syntax)

To support new languages, see:

Something went wrong with that request. Please try again.