Ⅰ. 插件描述
:point_right: Target text *after* the designated charactersⅡ. 基本信息
|
Ⅲ. 安装方法
使用Vundle管理器安装
在你的.vimrc下添加:Plugin 'junegunn/vim-after-object'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall
对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。
使用NeoBundle管理器安装
在你的.vimrc下添加:NeoBundle 'junegunn/vim-after-object'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall
使用VimPlug管理器安装
在你的.vimrc下添加:Plug 'junegunn/vim-after-object'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall
使用Pathogen管理器安装
在终端中运行以下命令:cd ~/.vim/bundle
git clone https://github.com/junegunn/vim-after-object
Ⅳ. 文档说明
vim-after-object 
Defines text objects to target text after the designated characters.
Installation
Using vim-plug:
Plug 'junegunn/vim-after-object'Setting up
vim-after-object does not define any mappings by default. You have to enable
mappings you want.
autocmd VimEnter * call after_object#enable('=', ':', '-', '#', ' ')For each character in the argument list, a pair of mappings is defined; the
default mapping with a-prefix (mnemonic for after) and the one withaa-prefix for backward search. The latter is only useful when the character
appears more than once in the line.
To use different prefixes, pass an optional list to after_object#enable:
" ]= and [= instead of a= and aa=
autocmd VimEnter * call after_object#enable([']', '['], '=', ':')Usage
# va= visual after =
# ca= change after =
# da= delete after =
# ya= yank after =
apple = 'juice'When the line contains multiple occurrences of the character, you can move the
visual selection forward by repeating a=, or backward with aa=. Both
mappings can be preceded by a count. Refer to the test cases for the details.