Ⅰ. 插件描述
Adjust spaces and commas when putting text.Ⅱ. 基本信息
|
Ⅲ. 安装方法
使用Vundle管理器安装
在你的.vimrc下添加:Plugin '/smartput'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall
对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。
使用NeoBundle管理器安装
在你的.vimrc下添加:NeoBundle '/smartput'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall
使用VimPlug管理器安装
在你的.vimrc下添加:Plug '/smartput'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall
使用Pathogen管理器安装
在终端中运行以下命令:cd ~/.vim/bundle
git clone https://github.com/vim-scripts/Smartput
Ⅳ. 文档说明
Smartput tries to reduce the need of fine-tuning spaces after a put. Under certain conditions, it also moves a comma to the other side of the register before putting.
The following keys are remapped: p, P, gp and gP.
Press <Leader>st to toggle Smartput on and off.
See also:
:help todo| /Smart cut.paste
There is a wealth of customization options -- the help file has the details.
Examples:
Hello World!
Type dwep on "Hello"
World Hello!
Hello World!
Type dawbP on "World"
World Hello!
Hello
()
Type dww3p on "Hello"
(Hello Hello Hello)
(Hello, World)
Type dWep on "Hello"
(World, Hello)