Skip to content

A text-object plugin to select functions in C and C++ powered by clang.

Notifications You must be signed in to change notification settings

libclang-vim/vim-textobj-function-clang

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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

About

A text-object plugin to select functions in C and C++ powered by clang.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published