Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kana/vim-textobj-function
Vim plugin: Text objects for functions
https://github.com/kana/vim-textobj-function
Last synced: 12 days ago
JSON representation
Vim plugin: Text objects for functions
- Host: GitHub
- URL: https://github.com/kana/vim-textobj-function
- Owner: kana
- Created: 2010-03-28T04:21:28.000Z (over 14 years ago)
- Default Branch: master
- Last Pushed: 2020-04-07T05:35:18.000Z (over 4 years ago)
- Last Synced: 2024-08-07T19:53:04.787Z (3 months ago)
- Language: VimL
- Homepage: http://www.vim.org/scripts/script.php?script_id=2619
- Size: 508 KB
- Stars: 142
- Watchers: 3
- Forks: 34
- Open Issues: 12
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# vim-textobj-function
[![Build Status](https://travis-ci.org/kana/vim-textobj-function.png)](https://travis-ci.org/kana/vim-textobj-function)
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.You can also use `aF` to target a function with leading or trailing blank
lines like `ap`, or use `iF` to target just a function like `ip`.
For example,- `yaF` to Yank A Function with leading or trailing blank lines, and
- `viF` to visually select a function without leading or trailing blank lines.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](https://github.com/kana/vim-vspec)-specific syntax)To support new languages, see:
* [The reference manual](https://github.com/kana/vim-textobj-function/blob/master/doc/textobj-function.txt)
* [The implementation for currently supported languages](https://github.com/kana/vim-textobj-function/tree/master/after/ftplugin)