Skip to content

Latest commit

 

History

History
30 lines (22 loc) · 1.39 KB

README.md

File metadata and controls

30 lines (22 loc) · 1.39 KB

Text Object for C and C++ Functions

vim-textobj-function-clang is a Vim text-object plugin to select functions in C and C++. The code is analyzed by clang. This plugin is a plugin of textobj-function; what we call a plugin of plugin. And this plugin depends on libclang-vim to use clang's code analysis by Vim script. Please install them in advance.

Usage

Please see vim-textobj-function's document to know the usage.

Installation

This plugin depends on textobj-user, textobj-function and libclang-vim. You must install them in advance. If you use neobundle, you can install them by writing below code in your vimrc.

  NeoBundleLazy 'kana/vim-textobj-indent', {
        \ 'depends' : [
        \   'kana/vim-textobj-user',
        \   'kana/vim-textobj-function',
        \   'rhysd/libclang-vim',
        \ ],
        \ 'autoload' : {
        \     'mappings' : [['xo', 'if'], ['xo', 'af']]
        \   }
        \ }

License

The MIT License Copyright (c) 2014 rhysd