vim-subbed


Ⅰ. 插件描述

A simple substitute command inspired by easyclip.

Ⅱ. 基本信息

创建日期:  2013-07-09
使用用户:  2
Github星:  0
插件作者:  James

Ⅲ. 安装方法

使用Vundle管理器安装

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

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

使用NeoBundle管理器安装

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

使用VimPlug管理器安装

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

使用Pathogen管理器安装

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

Ⅳ. 文档说明

vim-subbed

A simple substitute command inspired by easyclip.

Overview

This plugin remaps the - and _ keys to perform a substitution. -
accepts motions and will replace text with the contents of the yank buffer.
_ substitutes till the end of the current line, behaving similarly to D,
or Y.

Installation

I recommend using either Vundle or NeoBundle to install this plugin.

Example

If the cursor is represented by ^, and inquisitive is in the yank
buffer then pressing -w will change the following text

and the ^hairy snail slimed ...

into

and the inquisitive^ snail slimed ... 

Why?

I got tired of substituting using c<motion>^R" or something similar. Subbed
changes this into -<motion> saving a few keystrokes and the finger curling
associated with reaching for the control key.

添加新评论