vim-textobj-function-clang


Ⅰ. 插件描述

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

Ⅱ. 基本信息

创建日期:  2014-02-14
使用用户:  2
Github星:  4
插件作者:  libclang-vim

Ⅲ. 安装方法

使用Vundle管理器安装

在你的.vimrc下添加:
Plugin 'libclang-vim/vim-textobj-function-clang-or-are-not'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall

对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。

使用NeoBundle管理器安装

在你的.vimrc下添加:
NeoBundle 'libclang-vim/vim-textobj-function-clang-or-are-not'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall

使用VimPlug管理器安装

在你的.vimrc下添加:
Plug 'libclang-vim/vim-textobj-function-clang-or-are-not'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall

使用Pathogen管理器安装

在终端中运行以下命令:
cd ~/.vim/bundle
git clone https://github.com/libclang-vim/vim-textobj-function-clang

Ⅳ. 文档说明

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

添加新评论