sponsor Vim development Vim logo Vim Book Ad

textobj-function : Text object for a function

 script karma  Rating 10/4, Downloaded by 1170  Comments, bugs, improvements  Vim wiki

created by
Kana Natsuno
 
script type
utility
 
description
*textobj-function* is a Vim plugin to provide universal text objects for
various kinds of functions.  For example, you can select any function with
|<Plug>(textobj-function-a)| / |<Plug>(textobj-function-i)| (default key
bindings: af / if).

The definition of a "function" is usually differed depending on what you are
editing, so at first, you have to tell the definition of what kind of function
you want to select to textobj-function.  By default, textobj-function knows
about functions in the following languages:
    *textobj-function-known-languages*
- C language |textobj-function-c|
- Vim script |textobj-function-vim|

If you want to tell about more functions in other languages, see
|textobj-function-customizing| for how to tell and
after/ftplugin/*/textobj-function.vim for the samples.

Requirements:
- Vim 7.2 or later
- |textobj-user| 0.3.7 or later (vimscript#2100)

Latest version:
http://github.com/kana/vim-textobj-function

Document in HTML format:
http://kana.github.com/config/vim/textobj-function.html
 
install details
...
 

rate this script Life Changing Helpful Unfulfilling 
script versions (upload new version)

Click on the package to download.

package script version date Vim version user release notes
vim-textobj-function-0.1.0.zip 0.1.0 2009-04-25 7.0 Kana Natsuno Initial upload
ip used for rating: 44.201.99.133

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.
   
Vim at Github