vim-textobj-anyblock


Ⅰ. 插件描述

A text object for any of '', "", (), {}, [] and <>.

Ⅱ. 基本信息

创建日期:  2013-09-15
使用用户:  3
Github星:  0
插件作者:  yang2007chun

Ⅲ. 安装方法

使用Vundle管理器安装

在你的.vimrc下添加:
Plugin 'chun-yang/vim-textobj-anyblock-without-it'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall

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

使用NeoBundle管理器安装

在你的.vimrc下添加:
NeoBundle 'chun-yang/vim-textobj-anyblock-without-it'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall

使用VimPlug管理器安装

在你的.vimrc下添加:
Plug 'chun-yang/vim-textobj-anyblock-without-it'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall

使用Pathogen管理器安装

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

Ⅳ. 文档说明

Make Quotes, Parenthesis, Braces as the Same Text Object

Build Status

This plugin make a text object mappings ib and ab.

  • ib is a union of i(, i{, i[, i', i" and i<.
  • ab is a union of a(, a{, a[, a', a" and a<.

ib and ab match all of them.

Screen shot

This plugin depends on vim-textobj-user. Please install it in advance.

If you want to change the blocks which ib and ab match, define g:textobj#anyblock#blocks. For example, if you install vim-textobj-between and want to match `...` , set [ '(', '{', '[', '"', "'", '<' , 'f`'] to it.

If you want to define buffer local blocks, set them to b:textobj_anyblock_buffer_local_blocks as list of string.

License

Copyright (c) 2013 rhysd MIT License.

添加新评论