textobj-motionmotion


Ⅰ. 插件描述

Text objects for bounds of 2 motions

Ⅱ. 基本信息

创建日期:  2012-11-05
使用用户:  1
Github星:  2
插件作者:  Takeshi Banse

Ⅲ. 安装方法

使用Vundle管理器安装

在你的.vimrc下添加:
Plugin 'hchbaw/textobj-motionmotion'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall

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

使用NeoBundle管理器安装

在你的.vimrc下添加:
NeoBundle 'hchbaw/textobj-motionmotion'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall

使用VimPlug管理器安装

在你的.vimrc下添加:
Plug 'hchbaw/textobj-motionmotion'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall

使用Pathogen管理器安装

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

Ⅳ. 文档说明

textobj-motionmotion is a Vim plugin to provide text objets to select a
piece of text bounded by the cursor positions of the following 2 motions.

For example, an asterisk (*) is used to denote the cursor position:

  ./runtime/doc/mo*tion.txt

<
"vim3bt." will select 'doc/motion' as follows:
(here (^) indicates the selected texts)

  ./runtime/doc/motion.txt
            ^^^^^^^^^^
<
Roughly speaking, this plugin makes an operator such that ["^x]c{motion} to
be able to respond ["x]cim{motion}{motion} (im is the default key mapping).
Hence the name "motionmotion" has been derived from.

Note that this plugin is far from complete. Please use [range] or
Visual-mode in the real world!

Requirements:

  • Vim 7.2 or later
  • |textobj-user| 0.3.8 or later  (vimscript#2100)

Latest version:
https://github.com/hchbaw/textobj-motionmotion.vim

Document in HTML format:
http://hchbaw.github.com/experiment/vim/textobj-motionmotion.html

添加新评论