Ⅰ. 插件描述
move head(or tail) of textobjects and change insert modeⅡ. 基本信息
|
Ⅲ. 安装方法
使用Vundle管理器安装
在你的.vimrc下添加:Plugin 'deris/vim-operator-insert'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall
对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。
使用NeoBundle管理器安装
在你的.vimrc下添加:NeoBundle 'deris/vim-operator-insert'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall
使用VimPlug管理器安装
在你的.vimrc下添加:Plug 'deris/vim-operator-insert'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall
使用Pathogen管理器安装
在终端中运行以下命令:cd ~/.vim/bundle
git clone https://github.com/deris/vim-operator-insert
Ⅳ. 文档说明
vim-operator-insert
This is Vim plugin of custom operator for moving head(or tail) of textobjects and change insert mode.
Requirements
Usage
This plugin define no default key mappings.
So you need to define key mappings. Look at Settings.
You can use <Plug>(operator-insert-i) to move head of textobjects and change insert mode.
And you can use <Plug>(operator-insert-a) to move tail of textobjects and change insert mode.
Settings
You need map key to use this plugin.
This is example settings.
nmap <Leader>i <Plug>(operator-insert-i)
nmap <Leader>a <Plug>(operator-insert-a)Screenshot
Following screenshot is example for insert tail of word to type <Leader>ae,
and for insert head of word to type <Leader>ib.

Following screenshot is example for insert tail of inner parentheses to type <Leader>aib,
and for insert head of inner parentheses to type <Leader>iib.

License
This plugin is distributed under MIT License.